summaryrefslogtreecommitdiffstats
path: root/src/zabbix_server
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-09 05:32:28 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-09 05:32:28 +0000
commit455a64dfe19d7700fa1fe10edecb1ea82fa5dcce (patch)
tree07c83461db6bef569ad09ad2e09536bc91354465 /src/zabbix_server
parentc9ac957849a908ec53b9c410916fb8f690c4c576 (diff)
downloadzabbix-455a64dfe19d7700fa1fe10edecb1ea82fa5dcce.tar.gz
zabbix-455a64dfe19d7700fa1fe10edecb1ea82fa5dcce.tar.xz
zabbix-455a64dfe19d7700fa1fe10edecb1ea82fa5dcce.zip
- fixed evaluation of {IPADDRESS} (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2630 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_server')
-rw-r--r--src/zabbix_server/expression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zabbix_server/expression.c b/src/zabbix_server/expression.c
index 5f94fc16..61109f2f 100644
--- a/src/zabbix_server/expression.c
+++ b/src/zabbix_server/expression.c
@@ -703,7 +703,7 @@ void substitute_simple_macros(DB_TRIGGER *trigger, DB_ACTION *action, char *data
}
else if( (s = strstr(str,"{IPADDRESS}")) != NULL )
{
- snprintf(sql,sizeof(sql)-1,"select distinct h.ip from triggers t, functions f,items i, hosts h where t.triggerid=%d and f.triggerid=t.triggerid and f.itemid=i.itemid and h.hostid=i.hostid and i.useip=1", trigger->triggerid);
+ snprintf(sql,sizeof(sql)-1,"select distinct h.ip from triggers t, functions f,items i, hosts h where t.triggerid=%d and f.triggerid=t.triggerid and f.itemid=i.itemid and h.hostid=i.hostid and h.useip=1", trigger->triggerid);
result = DBselect(sql);
if(DBnum_rows(result) == 0)