setHeader(array(S_PARAMETER,S_VALUE)); $stats=get_stats(); $str=new CSpan(S_NO,"on"); if( (exec("ps -ef|grep zabbix_server|grep -v grep|wc -l")>0) || (exec("ps -ax|grep zabbix_server|grep -v grep|wc -l")>0) ) { $str=new CSpan(S_YES,"off"); } $table->addRow(array(S_ZABBIX_SERVER_IS_RUNNING,$str)); $table->addRow(array(S_NUMBER_OF_VALUES_STORED,$stats["history_count"])); $table->addRow(array(S_NUMBER_OF_TRENDS_STORED,$stats["trends_count"])); $table->addRow(array(S_NUMBER_OF_ALARMS,$stats["alarms_count"])); $table->addRow(array(S_NUMBER_OF_ALERTS,$stats["alerts_count"])); $table->addRow(array(S_NUMBER_OF_TRIGGERS_ENABLED_DISABLED,$stats["triggers_count"]."(".$stats["triggers_count_enabled"]."/".$stats["triggers_count_disabled"].")")); $table->addRow(array(S_NUMBER_OF_ITEMS_ACTIVE_TRAPPER,$stats["items_count"]."(".$stats["items_count_active"]."/".$stats["items_count_trapper"]."/".$stats["items_count_not_active"]."/".$stats["items_count_not_supported"].")")); $table->addRow(array(S_NUMBER_OF_USERS,$stats["users_count"])); $table->addRow(array(S_NUMBER_OF_HOSTS_MONITORED,$stats["hosts_count"]."(".$stats["hosts_count_monitored"]."/".$stats["hosts_count_not_monitored"]."/".$stats["hosts_count_template"]."/".$stats["hosts_count_deleted"].")")); $table->show(); ?>