[checkmk-commits] Check_MK Git: check_mk: #1148 Allow execution of actions when cancelling events

Mathias Kettner mk at mathias-kettner.de
Thu Aug 28 14:37:51 CEST 2014


Module: check_mk
Branch: master
Commit: 2d163c343edbddcaeceef01739f78b2bd61c8e46
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2d163c343edbddcaeceef01739f78b2bd61c8e46

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Thu Aug 28 14:37:44 2014 +0200

#1148 Allow execution of actions when cancelling events

The Event Console now allows to attach actions to the cancelling of
events. This can for example be helpful if you have an action that opens a
trouble ticket in an external system. When a cancelling event arrives you
can have executed an action that also cancels the according trouble ticket.

When events are cancelled then several data fields of the event are being
replaced with data from the new event before the action is being executed. That
way relevant data from the new event is available in the action script. Also
the event phase is being set to <tt>closed</tt> and the state is set to
0 (OK).  That way your action script can distinguish between a normal
and a cancelling situation.

The following fields are taken from the new (i.e. cancelling) event:

<ul>
<li>The text</li>
<li>The time</li>
<li>The time of the last occurance</li>
<li>The syslog priority</li>
</ul>

All other fields are unchanged - including the original ID of the cancelled
event.

---

 .werks/1148                           |   31 ++++++++++++++++++++
 ChangeLog                             |    3 +-
 mkeventd/bin/mkeventd                 |   52 ++++++++++++++++++++++++++-------
 mkeventd/web/htdocs/mkeventd.py       |    1 +
 mkeventd/web/plugins/wato/mkeventd.py |   11 +++++--
 5 files changed, 84 insertions(+), 14 deletions(-)

Diff:   http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=2d163c343edbddcaeceef01739f78b2bd61c8e46


More information about the checkmk-commits mailing list