summaryrefslogtreecommitdiffstats
path: root/frontends/php/triggers.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-13 08:22:32 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-13 08:22:32 +0000
commitabaab90a1c9d3367f1ef636557cfe8e661716749 (patch)
tree3e266e5523a635c45a7e7ef6d4571e7323f26065 /frontends/php/triggers.php
parent8901654871973b4267f106a97183001189189c82 (diff)
downloadzabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.tar.gz
zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.tar.xz
zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.zip
- merger rev. 4546:4547 of branches/1.4.j [developed data monitoring of multiple nodes]
git-svn-id: svn://svn.zabbix.com/trunk@4549 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/triggers.php')
-rw-r--r--frontends/php/triggers.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/frontends/php/triggers.php b/frontends/php/triggers.php
index b1e78a18..404dbbd9 100644
--- a/frontends/php/triggers.php
+++ b/frontends/php/triggers.php
@@ -94,7 +94,7 @@ include_once "include/page_header.php";
<?php
update_profile("web.triggers.showdisabled",$showdisabled);
- $accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE, null, null, $ZBX_CURNODEID);
+ $accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE, null, null, get_current_nodeid());
/* FORM ACTIONS */
if(isset($_REQUEST["clone"]) && isset($_REQUEST["triggerid"]))
@@ -378,16 +378,11 @@ include_once "include/page_header.php";
),
S_EXPRESSION, S_SEVERITY, S_STATUS, S_ERROR));
-/* $sql = "select distinct h.hostid,h.host,t.*".
- " from triggers t,hosts h,items i,functions f".
- " where f.itemid=i.itemid and h.hostid=i.hostid and t.triggerid=f.triggerid".
- " and ".DBid2nodeid("h.hostid")."=".$ZBX_CURNODEID;
-*/
$sql = 'select distinct h.hostid,h.host,t.*'.
' from triggers t left join functions f on t.triggerid=f.triggerid '.
' left join items i on f.itemid=i.itemid '.
' left join hosts h on h.hostid=i.hostid '.
- ' where '.DBid2nodeid('t.triggerid').'='.$ZBX_CURNODEID;
+ ' where '.DBin_node('t.triggerid');
if($showdisabled == 0)
$sql .= ' and t.status <> '.TRIGGER_STATUS_DISABLED;