SetHeader(array(S_PARAMETER,S_VALUE)); $status=get_status(); if($status["zabbix_server"] == S_YES) $style = "off"; else $style = "on"; $table->AddRow(array(S_ZABBIX_SERVER_IS_RUNNING,new CSpan($status["zabbix_server"],$style))); $table->AddRow(array(S_VALUES_STORED,$status["history_count"])); $table->AddRow(array(S_TRENDS_STORED,$status["trends_count"])); $table->AddRow(array(S_NUMBER_OF_HOSTS,array($status["hosts_count"]."(", new CSpan($status["hosts_count_monitored"],"off"),"/", new CSpan($status["hosts_count_not_monitored"],"on"),"/", new CSpan($status["hosts_count_template"],"unknown"),"/", $status["hosts_count_deleted"].")"))); $table->AddRow(array(S_NUMBER_OF_ITEMS,array($status["items_count"]."(", new CSpan($status["items_count_monitored"],"off"),"/", new CSpan($status["items_count_disabled"],"on"),"/", new CSpan($status["items_count_not_supported"],"unknown"), ")[".$status["items_count_trapper"]."]"))); $table->AddRow(array(S_NUMBER_OF_TRIGGERS,array($status["triggers_count"]. "(".$status["triggers_count_enabled"]."/".$status["triggers_count_disabled"].")"."[", new CSpan($status["triggers_count_on"],"on"),"/", new CSpan($status["triggers_count_unknown"],"unknown"),"/", new CSpan($status["triggers_count_off"],"off"),"]" ))); $table->AddRow(array(S_NUMBER_OF_ALARMS,$status["alarms_count"])); $table->AddRow(array(S_NUMBER_OF_ALERTS,$status["alerts_count"])); $table->Show(); ?>