summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxdbhigh/host.c
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-06 12:37:47 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-06 12:37:47 +0000
commit8c5f2e7ee625064dac24f0100fc3614047831558 (patch)
tree0d7cc1da1a8bb7b80fc1bdc009e0d1268c9b18c8 /src/libs/zbxdbhigh/host.c
parent9263d30eec5cc7a206439fc54a9d5af88e63e587 (diff)
downloadzabbix-8c5f2e7ee625064dac24f0100fc3614047831558.tar.gz
zabbix-8c5f2e7ee625064dac24f0100fc3614047831558.tar.xz
zabbix-8c5f2e7ee625064dac24f0100fc3614047831558.zip
- [DEV-127] new status for alerts.status - FAILED (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@5453 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxdbhigh/host.c')
-rw-r--r--src/libs/zbxdbhigh/host.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libs/zbxdbhigh/host.c b/src/libs/zbxdbhigh/host.c
index 304155d9..d80468f9 100644
--- a/src/libs/zbxdbhigh/host.c
+++ b/src/libs/zbxdbhigh/host.c
@@ -3073,9 +3073,11 @@ static int DBadd_event(
if(value == TRIGGER_VALUE_FALSE || value == TRIGGER_VALUE_TRUE)
{
- DBexecute("update alerts set retries=3,error='Trigger changed its status. WIll not send repeats.'"
- " where triggerid=" ZBX_FS_UI64 " and repeats>0 and status=%i",
- triggerid, ALERT_STATUS_NOT_SENT);
+ DBexecute("update alerts set status=%d,error='Trigger changed its status. Will not send repeats.'"
+ " where eventid=" ZBX_FS_UI64 " and status=%d",
+ ALERT_STATUS_FAILED,
+ eventid,
+ ALERT_STATUS_NOT_SENT);
}
}