diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-06 09:55:29 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-06 09:55:29 +0000 |
| commit | 4f7fbfe6c9fe77d0590e4309c6aebe15fceba65a (patch) | |
| tree | e1383b0a1755450ff94169bbb364691289078c49 /frontends/php/report1.php | |
| parent | 0b765af5821ca1cf11057e2057ce466fbcfed5f2 (diff) | |
Misc GUI improvements.
git-svn-id: svn://svn.zabbix.com/trunk@2606 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report1.php')
| -rw-r--r-- | frontends/php/report1.php | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/frontends/php/report1.php b/frontends/php/report1.php index 199ff2d7..6612555d 100644 --- a/frontends/php/report1.php +++ b/frontends/php/report1.php @@ -46,22 +46,21 @@ $stats=get_stats(); - $col=0; - $str=array("value"=>S_NO,"class"=>"on"); + $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=array("value"=>S_YES,"class"=>"off"); + $str=new CSpan(S_YES,"off"); } - $table->addRow(array(S_ZABBIX_SERVER_IS_RUNNING,$str),$col++); + $table->addRow(array(S_ZABBIX_SERVER_IS_RUNNING,$str)); - $table->addRow(array(S_NUMBER_OF_VALUES_STORED,$stats["history_count"]),$col++); - $table->addRow(array(S_NUMBER_OF_TRENDS_STORED,$stats["trends_count"]),$col++); - $table->addRow(array(S_NUMBER_OF_ALARMS,$stats["alarms_count"]),$col++); - $table->addRow(array(S_NUMBER_OF_ALERTS,$stats["alerts_count"]),$col++); - $table->addRow(array(S_NUMBER_OF_TRIGGERS_ENABLED_DISABLED,$stats["triggers_count"]."(".$stats["triggers_count_enabled"]."/".$stats["triggers_count_disabled"].")"),$col++); - $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"].")"),$col++); - $table->addRow(array(S_NUMBER_OF_USERS,$stats["users_count"]),$col++); - $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"].")"),$col++); + $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(); ?> |
