summaryrefslogtreecommitdiffstats
path: root/frontends/php/report5.php
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-01 11:52:06 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-01 11:52:06 +0000
commit05bab2bce169d49dbb87a336c621ea02126e92d9 (patch)
treeeb5d95e089a82976b12384554601d175ab54686a /frontends/php/report5.php
parent90c6b6d0362e9d5c52843c3f4c20664bdb3e6773 (diff)
downloadzabbix-05bab2bce169d49dbb87a336c621ea02126e92d9.tar.gz
zabbix-05bab2bce169d49dbb87a336c621ea02126e92d9.tar.xz
zabbix-05bab2bce169d49dbb87a336c621ea02126e92d9.zip
- fixed Most Busy trigger report for multi-item triggers (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@3420 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report5.php')
-rw-r--r--frontends/php/report5.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/report5.php b/frontends/php/report5.php
index 7b9e25ad..8136c3ee 100644
--- a/frontends/php/report5.php
+++ b/frontends/php/report5.php
@@ -66,7 +66,7 @@ include_once "include/page_header.php";
$denyed_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY, PERM_MODE_LT);
- $result=DBselect("select h.host, t.triggerid, t.description, t.priority, count(e.eventid) as count ".
+ $result=DBselect("select h.host, t.triggerid, t.description, t.priority, count(distinct e.eventid) as count ".
" from hosts h, triggers t, functions f, items i, events e where ".
" h.hostid = i.hostid and i.itemid = f.itemid and t.triggerid=f.triggerid and ".
" t.triggerid=e.triggerid and e.clock>".(time()-$time_dif).