Module: check_mk
Branch: master
Commit: 97b3a4fccfe3b9f53f2f520c84e2128bcf185b88
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=97b3a4fccfe3b9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 13 10:58:03 2017 +0200
4989 Added handling of host downtimes during event creation
The Event Console is now saving whether or not a host that can be found in the core
was in downtime or not. Based on this information the event handling can be influenced
in different ways.
The idea is: In the moment a host is in downtime all events generated by the host are
"handled problems". The events should be created and be visible during the
downtime to
assist during maintenance. After maintenance the events that have been created in the
downtime are not interesting anymore.
What has changed:
<ul>
<li>Each event has a new attribute <tt>event_host_in_downtime</tt>.
Assuming <i>0</i>
(no) for existing events.</li>
<li>It is possible to filter event views by this information</li>
<li>Separate counting events are created for in downtime / not in
downtime</li>
<li>Events are added during downtime and visible in the default events
views<li>
<li>The tactical overview does not count events created in host downtime in the
"handled problems" column</li>
<li>Events created during downtime will be archived automatically after the host
left the downtime</li>
<li>Actions are handled independent of the downtime by default. But you have the
option to only execute actions when the host was not in downtime</li>
</ul>
Events that are not associated with a monitoring host in the local site are
not affected by the changes mentioned above.
Change-Id: Ic571b8488134095c019965cc76ea36efcbfdec67
---
.werks/4989 | 36 ++++
bin/mkeventd | 300 +++++++++++++++++++++---------
livestatus/src/TableEventConsoleEvents.cc | 3 +
web/htdocs/htmllib.py | 6 +-
web/plugins/sidebar/shipped.py | 16 +-
web/plugins/views/mkeventd.py | 271 ++++++++++++++-------------
web/plugins/visuals/mkeventd.py | 1 +
web/plugins/wato/mkeventd.py | 21 ++-
8 files changed, 432 insertions(+), 222 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=97b3a4fccf…