From 8755f9643aba3cffc5320321618fbe8e7b78b73b Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 14 Sep 2006 11:06:27 +0000 Subject: Initial integration of distributed monitoring. Changes 3196:HEAD of branches/distributed git-svn-id: svn://svn.zabbix.com/trunk@3306 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/items.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'frontends/php/items.php') diff --git a/frontends/php/items.php b/frontends/php/items.php index b531d937..6fe0c480 100644 --- a/frontends/php/items.php +++ b/frontends/php/items.php @@ -347,7 +347,7 @@ show_header2(S_CONFIGURATION_OF_ITEMS_BIG, $form); echo BR; - $db_hosts=DBselect("select hostid from hosts"); + $db_hosts=DBselect("select hostid from hosts where mod(hostid,100)=$ZBX_CURNODEID"); if(isset($_REQUEST["form_copy_to"]) && isset($_REQUEST["group_itemid"])) { insert_copy_elements_to_forms("group_itemid"); @@ -363,7 +363,7 @@ $cmbGroup = new CComboBox("groupid",$_REQUEST["groupid"],"submit();"); $cmbGroup->AddItem(0,S_ALL_SMALL); - $result=DBselect("select groupid,name from groups order by name"); + $result=DBselect("select groupid,name from groups where mod(groupid,100)=$ZBX_CURNODEID order by name"); while($row=DBfetch($result)) { // Check if at least one host with read permission exists for this group @@ -389,6 +389,7 @@ else { $sql="select h.hostid,h.host from hosts h where h.status<>".HOST_STATUS_DELETED. + " and mod(h.hostid,100)=".$ZBX_CURNODEID. " group by h.hostid,h.host order by h.host"; } -- cgit