diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-02-05 11:58:04 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-02-05 11:58:04 +0000 |
commit | c89221db2facb0d5ab8888179874900ee477c5e6 (patch) | |
tree | 81befe272f8024141a73b08c795164e2be842342 /frontends/php/report1.php | |
parent | 4b495c1d7bc2735aec1d8dad77c675742f12bf79 (diff) | |
download | zabbix-c89221db2facb0d5ab8888179874900ee477c5e6.tar.gz zabbix-c89221db2facb0d5ab8888179874900ee477c5e6.tar.xz zabbix-c89221db2facb0d5ab8888179874900ee477c5e6.zip |
- all *.html documents were renamed to *.php (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@311 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report1.php')
-rw-r--r-- | frontends/php/report1.php | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/frontends/php/report1.php b/frontends/php/report1.php new file mode 100644 index 00000000..91524b1b --- /dev/null +++ b/frontends/php/report1.php @@ -0,0 +1,82 @@ +<? + include "include/config.inc"; + $page["title"] = "Status of Zabbix"; + $page["file"] = "report1.php"; + show_header($page["title"],0,0); +?> + +<? + show_table_header("STATUS OF ZABBIX"); + + echo "<TABLE BORDER=0 WIDTH=\"100%\" BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>"; + echo "<TR><TD WIDTH=\"10%\"><B>Parameter</B></TD>"; + echo "<TD WIDTH=\"10%\" NOSAVE><B>Value</B></TD>"; + echo "</TR>"; + + $stats=get_stats(); +?> + + <tr bgcolor="#eeeeee"> + <td>Is zabbix_suckerd running ?</td> + <? + $str="No"; + if(exec("ps -aef|grep zabbix_suckerd|grep -v grep|wc -l")>0) + { + $str="Yes"; + } + ?> + <td><? echo $str; ?></td> + </tr> + + <tr bgcolor="#dddddd"> + <td>Is zabbix_trapperd running ?</td> + <? + $str="No"; + if(exec("ps -aef|grep zabbix_trapperd|grep -v grep|wc -l")>0) + { + $str="Yes"; + } + ?> + <td><? echo $str; ?></td> + </tr> + + <tr bgcolor="#eeeeee"> + <td>Number of values stored in table history</td> + <td><? echo $stats["history_count"]; ?></td> + </tr> + + <tr bgcolor="#dddddd"> + <td>Number of values stored in table alarms</td> + <td><? echo $stats["alarms_count"]; ?></td> + </tr> + + <tr bgcolor="#eeeeee"> + <td>Number of values stored in table alerts</td> + <td><? echo $stats["alerts_count"]; ?></td> + </tr> + + <tr bgcolor="#dddddd"> + <td>Number of triggers (enabled/disabled)</td> + <td><? echo $stats["triggers_count"],"(",$stats["triggers_count_enabled"],"/",$stats["triggers_count_disabled"],")"; ?></td> + </tr> + + <tr bgcolor="#eeeeee"> + <td>Number of items (active/trapper/not active/not supported)</td> + <td><? echo $stats["items_count"],"(",$stats["items_count_active"],"/",$stats["items_count_trapper"],"/",$stats["items_count_not_active"],"/",$stats["items_count_not_supported"],")"; ?></td> + </tr> + + <tr bgcolor="#dddddd"> + <td>Number of users</td> + <td><? echo $stats["users_count"]; ?></td> + </tr> + + <tr bgcolor="#eeeeee"> + <td>Number of hosts (monitored/not monitored)</td> + <td><? echo $stats["hosts_count"],"(",$stats["hosts_count_monitored"],"/",$stats["hosts_count_not_monitored"],")"; ?></td> + </tr> + + </table> + +<? + show_footer(); +?> |