summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-01-22 19:06:01 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-01-22 19:06:01 +0000
commit15d672f4641ffd2eabd8f44ed3110c57428eab4a (patch)
tree8eee5eebf481df8923f8707e79e5c286f11b5760 /frontends/php
parent844a30c1c64c9c9195e40b323a8fd864f56da792 (diff)
Minor changes for report1.php (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@660 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/report1.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/frontends/php/report1.php b/frontends/php/report1.php
index 9184a1e8..15398763 100644
--- a/frontends/php/report1.php
+++ b/frontends/php/report1.php
@@ -19,10 +19,10 @@
<tr bgcolor="#eeeeee">
<td>Is zabbix_suckerd running ?</td>
<?php
- $str="No";
- if(exec("ps axw|grep zabbix_suckerd|wc -l")>0)
+ $str="<font color=\"AA0000\">No</font>";
+ if(exec("ps axw|grep zabbix_suckerd|grep -v grep|wc -l")>0)
{
- $str="Yes";
+ $str="<font color=\"00AA00\">Yes</font>";
}
?>
<td><?php echo $str; ?></td>
@@ -31,27 +31,27 @@
<tr bgcolor="#dddddd">
<td>Is zabbix_trapperd running ?</td>
<?php
- $str="No";
- if(exec("ps axw|grep zabbix_trapperd|wc -l")>0)
+ $str="<font color=\"AA0000\">No</font>";
+ if(exec("ps axw|grep zabbix_trapperd|grep -v grep|wc -l")>0)
{
- $str="Yes";
+ $str="<font color=\"00AA00\">Yes</font>";
}
?>
<td><?php echo $str; ?></td>
</tr>
<tr bgcolor="#eeeeee">
- <td>Number of values stored in table history</td>
+ <td>Number of values stored</td>
<td><?php echo $stats["history_count"]; ?></td>
</tr>
<tr bgcolor="#dddddd">
- <td>Number of values stored in table alarms</td>
+ <td>Number of alarms</td>
<td><?php echo $stats["alarms_count"]; ?></td>
</tr>
<tr bgcolor="#eeeeee">
- <td>Number of values stored in table alerts</td>
+ <td>Number of alerts</td>
<td><?php echo $stats["alerts_count"]; ?></td>
</tr>