summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-03-06 09:56:22 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-03-06 09:56:22 +0000
commit3cd394e55d3d16ce07e222631830229a64ba76f7 (patch)
tree28834196f79cac67823d5df8823098ef496b64cd /frontends/php
parent8fd5c0609862485ae737938b63cfd76cc9ff3d68 (diff)
- fixed host statistics in report1.php (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1287 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/include/config.inc.php3
-rw-r--r--frontends/php/report1.php4
2 files changed, 5 insertions, 2 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index cee691d6..14c2370c 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -4608,6 +4608,9 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
$result=DBselect("select count(*) from hosts where status=1");
$stat["hosts_count_not_monitored"]=DBget_field($result,0,0);
+ $result=DBselect("select count(*) from hosts where status=3");
+ $stat["hosts_count_template"]=DBget_field($result,0,0);
+
$result=DBselect("select count(*) from users");
$stat["users_count"]=DBget_field($result,0,0);
diff --git a/frontends/php/report1.php b/frontends/php/report1.php
index 560d559d..d8f4b164 100644
--- a/frontends/php/report1.php
+++ b/frontends/php/report1.php
@@ -96,8 +96,8 @@
</tr>
<tr bgcolor="#dddddd">
- <td>Number of hosts (monitored/not monitored)</td>
- <td><?php echo $stats["hosts_count"],"(",$stats["hosts_count_monitored"],"/",$stats["hosts_count_not_monitored"],")"; ?></td>
+ <td>Number of hosts (monitored/not monitored/templates)</td>
+ <td><?php echo $stats["hosts_count"],"(",$stats["hosts_count_monitored"],"/",$stats["hosts_count_not_monitored"],"/",$stats["hosts_count_template"],")"; ?></td>
</tr>
</table>