Module: check_mk
Branch: master
Commit: 0b9c874e9335b35515dfdfe3e90c42ccf02996ca
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b9c874e9335b3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 29 07:53:18 2017 +0200
EC: Fixed exception in housekeeping with rule overflow events
Change-Id: I924861aa692e5d4cc63e427a38dee59edc30aa15
---
bin/mkeventd | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bin/mkeventd b/bin/mkeventd
index 7bfebdf..4813de4 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -1875,6 +1875,8 @@ class EventServer(threading.Thread):
host_downtimes = {}
for event in g_event_status.events():
+ if "host_in_downtime" not in event:
+ self.logger.warning(repr(event))
if not event["host_in_downtime"]:
continue # only care about events created in downtime
@@ -3058,6 +3060,8 @@ class EventServer(threading.Thread):
"match_groups": (),
"state": 2, # crit
"sl": event["sl"],
+ "core_host": "",
+ "host_in_downtime": False,
}
self._add_rule_contact_groups_to_event({}, new_event)