Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/zabbix_server/operations.c')
-rw-r--r--src/zabbix_server/operations.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zabbix_server/operations.c b/src/zabbix_server/operations.c
index 197fd6f809b..309814fb22c 100644
--- a/src/zabbix_server/operations.c
+++ b/src/zabbix_server/operations.c
@@ -300,12 +300,13 @@ static zbx_uint64_t add_discovered_host(const ZBX_DB_EVENT *event, int *status,
" where h.hostid=i.hostid"
" and i.ip=ds.ip"
" and h.status in (%d,%d)"
+ " and h.flags<>%d"
" and h.proxy_hostid%s"
" and ds.dhostid=" ZBX_FS_UI64
- " and h.flags <> %d"
" order by h.hostid",
HOST_STATUS_MONITORED, HOST_STATUS_NOT_MONITORED,
- DBsql_id_cmp(proxy_hostid), dhostid, ZBX_FLAG_DISCOVERY_PROTOTYPE);
+ ZBX_FLAG_DISCOVERY_PROTOTYPE,
+ DBsql_id_cmp(proxy_hostid), dhostid);
if (NULL != (row2 = DBfetch(result2)))
{