diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-11-22 11:01:51 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-11-22 11:01:51 +0000 |
| commit | 27a43d2d98643a7ce0ef306518d1f5228e6801e4 (patch) | |
| tree | a358666d4467f3a46d116a8c2626523f4336553c /frontends/php/bulkloader.php | |
| parent | ef96e6db41641268e255003d3df11c27e0b64302 (diff) | |
- reverted multiple server patch (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2343 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/bulkloader.php')
| -rw-r--r-- | frontends/php/bulkloader.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/frontends/php/bulkloader.php b/frontends/php/bulkloader.php index 6444c9da..de152b44 100644 --- a/frontends/php/bulkloader.php +++ b/frontends/php/bulkloader.php @@ -96,19 +96,6 @@ $hostTemplate=0; } - // Determine which Zabbix server this host defaults to - $sql="select distinct(serverid) from servers where host='$tmpHostServer'"; - $sqlResult=DBselect($sql); - if(DBnum_rows($sqlResult)==1) - { - $row=DBfetch($sqlResult); - $hostServer=$row["serverid"]; - } - else - { - $hostServer=1; - } - // Now that we have all the values we need process them for this host $result=add_host($tmpHost,$hostPort,$hostStat,$hostUseIP,$tmpHostIP,$hostTemplate,'',''); show_messages($result,'Host added: '. $tmpHost,'Cannot add host: '. $tmpHost);; @@ -126,7 +113,6 @@ } add_template_linkage($tmpHostID,$hostTemplate,7,7,7,7,7); sync_host_with_template($tmpHostID,$hostTemplate,7,7,7,7,7); - DBexecute("update hosts set serverid=$hostServer where hostid='$tmpHostID'"); } break; case "USER": |
