#!/bin/sh #------------------------------------------------------------------------------ # status_system.cgi - Display Status of System (rrdtool graph) # # Creation: 2009.09.01 Lanspezi # Last Update: $Id$ # #------------------------------------------------------------------------------ # get main helper functions # set_debug=yes . /srv/www/include/cgi-helper SEC_ACTION='view' headtitle="Systemstatus" # Security check_rights "status" "$SEC_ACTION" show_html_header "$headtitle" "${ref}" #------------------------------------------------------------------------------- #----------- Sytem & Load Graphs ----------------------------------------------- #------------------------------------------------------------------------------- if [ -e /srv/www/include/rrd-status_system.inc ] then . /srv/www/include/rrd-common.inc . /srv/www/include/rrd-status_system.inc : ${FORM_rrd_graphtime_load:=$rrd_default_graphtime} : ${FORM_rrd_graphtime_cpu:=$rrd_default_graphtime} : ${FORM_rrd_graphtime_uptime:=$rrd_default_graphtime} : ${FORM_rrd_graphtime_memory:=$rrd_default_graphtime} : ${FORM_rrd_graphtime_processes:=$rrd_default_graphtime} : ${FORM_rrd_graphtime_entropy:=$rrd_default_graphtime} _load="load" _cpu="cpu" _uptime="uptime" _memory="memory" _processes="processes" _entropy="entropy" : ${FORM_action:=$_load} show_tab_header $_load $myname?action=load \ $_cpu $myname?action=cpu \ $_uptime $myname?action=uptime \ $_memory $myname?action=memory \ $_processes $myname?action=processes \ $_entropy $myname?action=entropy rrd_open_tab_list $FORM_action rrd_render_graph $FORM_action rrd_close_tab_list show_tab_footer fi show_html_footer