summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxdbhigh/db.c
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-26 08:53:11 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-26 08:53:11 +0000
commit35c0395807948dd662cabec7450bd6c5bcfb6b53 (patch)
treee46a721c747863bb8b01597c3d19411d4f879773 /src/libs/zbxdbhigh/db.c
parente8ee3b3e016176ac49a8361a20a41ed2a23d8e88 (diff)
downloadzabbix-35c0395807948dd662cabec7450bd6c5bcfb6b53.tar.gz
zabbix-35c0395807948dd662cabec7450bd6c5bcfb6b53.tar.xz
zabbix-35c0395807948dd662cabec7450bd6c5bcfb6b53.zip
- [DEV-173] support of escalation, server-side
link recovery message to recovery event git-svn-id: svn://svn.zabbix.com/trunk@5797 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxdbhigh/db.c')
-rw-r--r--src/libs/zbxdbhigh/db.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/zbxdbhigh/db.c b/src/libs/zbxdbhigh/db.c
index a300fad4..5976252d 100644
--- a/src/libs/zbxdbhigh/db.c
+++ b/src/libs/zbxdbhigh/db.c
@@ -1582,10 +1582,11 @@ int DBstart_escalation(zbx_uint64_t actionid, zbx_uint64_t triggerid, zbx_uint64
return SUCCEED;
}
-int DBstop_escalation(zbx_uint64_t actionid, zbx_uint64_t triggerid)
+int DBstop_escalation(zbx_uint64_t actionid, zbx_uint64_t triggerid, zbx_uint64_t eventid)
{
- DBexecute("update escalations set status=%d,nextcheck=0 where actionid=" ZBX_FS_UI64
- " and triggerid=" ZBX_FS_UI64,
+ DBexecute("update escalations set r_eventid=" ZBX_FS_UI64 ",status=%d,nextcheck=0"
+ " where actionid=" ZBX_FS_UI64 " and triggerid=" ZBX_FS_UI64,
+ eventid,
ESCALATION_STATUS_RECOVERY,
actionid,
triggerid);