summaryrefslogtreecommitdiffstats
path: root/frontends/php/report5.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-19 09:49:38 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-19 09:49:38 +0000
commitc251e5c034c00b9b3a1fd21ef727f0c196404c23 (patch)
tree7c943e39f4521d2beb9b85740f12cd9c6bb7f54a /frontends/php/report5.php
parentabf5d66c9ae735a96ef84a5a34ef143a1612bb35 (diff)
downloadzabbix-c251e5c034c00b9b3a1fd21ef727f0c196404c23.tar.gz
zabbix-c251e5c034c00b9b3a1fd21ef727f0c196404c23.tar.xz
zabbix-c251e5c034c00b9b3a1fd21ef727f0c196404c23.zip
- fixed events.triggerid requests
git-svn-id: svn://svn.zabbix.com/trunk@3896 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report5.php')
-rw-r--r--frontends/php/report5.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/report5.php b/frontends/php/report5.php
index 75da6155..c27e506a 100644
--- a/frontends/php/report5.php
+++ b/frontends/php/report5.php
@@ -69,8 +69,8 @@ include_once "include/page_header.php";
$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).
- " and h.hostid in (".$accessible_hosts.") and ".DBid2nodeid("e.triggerid")."=".$ZBX_CURNODEID.
+ ' t.triggerid=e.objectid and e.object='.EVENT_OBJECT_TRIGGER.' and e.clock>'.(time()-$time_dif).
+ " and h.hostid in (".$accessible_hosts.") and ".DBid2nodeid("t.triggerid")."=".$ZBX_CURNODEID.
" group by h.host,t.triggerid,t.description,t.priority ".
" order by count desc, h.host, t.description, t.triggerid", 100);