summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
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/include
parent8fd5c0609862485ae737938b63cfd76cc9ff3d68 (diff)
downloadzabbix-3cd394e55d3d16ce07e222631830229a64ba76f7.tar.gz
zabbix-3cd394e55d3d16ce07e222631830229a64ba76f7.tar.xz
zabbix-3cd394e55d3d16ce07e222631830229a64ba76f7.zip
- 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/include')
-rw-r--r--frontends/php/include/config.inc.php3
1 files changed, 3 insertions, 0 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);