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/bulkloader.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontends/php/bulkloader.php') diff --git a/frontends/php/bulkloader.php b/frontends/php/bulkloader.php index 07bd1be3..de5b2edc 100644 --- a/frontends/php/bulkloader.php +++ b/frontends/php/bulkloader.php @@ -87,7 +87,8 @@ // Determine which template, if any this host is linked to $sqlResult=DBselect("select distinct(hostid) from hosts where status=". HOST_STATUS_TEMPLATE . - " and host=".zbx_dbstr($tmpHostTemplate)); + " and host=".zbx_dbstr($tmpHostTemplate). + " and mod(hostid,100)=".$ZBX_CURNODEID; $row=DBfetch($sqlResult); if($row) { @@ -103,7 +104,8 @@ foreach(explode(',',rtrim(rtrim($tmpHostGroups," "),"\n")) as $group_name) { add_host_group($group_name); - $groupid = DBfetch(DBselect("select groupid from groups where name=".zbx_dbstr($group_name))); + $groupid = DBfetch(DBselect("select groupid from groups where name=".zbx_dbstr($group_name). + " and mod(groupid,100)=".$ZBX_CURNODEID; if(!$groupid) continue; array_push($groups,$groupid["groupid"]); } -- cgit