diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-03-14 15:21:27 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-03-14 15:21:27 +0000 |
commit | 25036c9384fcec4d36f4cfc69fe2b86e4ef2c9c6 (patch) | |
tree | 01e08dad83c7671bb8a19b9c40f2f786b033d99e /frontends/php/report1.php | |
parent | f35b829723124ac2c15defd1d5cce44b40b1c8ec (diff) | |
download | zabbix-25036c9384fcec4d36f4cfc69fe2b86e4ef2c9c6.tar.gz zabbix-25036c9384fcec4d36f4cfc69fe2b86e4ef2c9c6.tar.xz zabbix-25036c9384fcec4d36f4cfc69fe2b86e4ef2c9c6.zip |
- added "Data overview" for screens
- added "Triggers overview" for screens (Eugene)
- added blinking into Trigger overview (Eugene)
- added screen displaying in other screen (Eugene)
- improved Overview table header, vertical text added (Eugene)
- developed "ZABBIX Clock" module for screens (Eugene)
- developed "ZABBIX server info" module for screens (Eugene)
- developed "Triggers info" module for screens (Eugene)
- developed "Host info" module for screens (Eugene)
- improved screens displaying, added item alignment (Eugene)
- improved ZABBIX server report (Eugene)
- improved images configuration (Eugene)
- added onserver image resizing for thumbs by php (Eugene)
- developed acknowledges system (Eugene)
- added icons displaying for maps (Eugene)
- added maps displaying for maps (Eugene)
- improved maps (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2699 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report1.php')
-rw-r--r-- | frontends/php/report1.php | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/frontends/php/report1.php b/frontends/php/report1.php index 6612555d..df230d87 100644 --- a/frontends/php/report1.php +++ b/frontends/php/report1.php @@ -42,27 +42,37 @@ $table = new CTableInfo(); - $table->setHeader(array(S_PARAMETER,S_VALUE)); + $table->SetHeader(array(S_PARAMETER,S_VALUE)); - $stats=get_stats(); + $status=get_status(); - $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)); + if($status["zabbix_server"] == S_YES) + $style = "off"; + else + $style = "on"; - $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(); + $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(); ?> <?php |