Module: check_mk
Branch: master
Commit: bbbfb88706cade78122c348001df6aefdc057a61
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bbbfb88706cadeā¦
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 25 13:43:32 2017 +0100
Fixed overflow events showing up in status_event_limit_active_rules list
Change-Id: I8a0a39e0b18e70430034fa08e9738a2143f649ee
---
bin/mkeventd | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bin/mkeventd b/bin/mkeventd
index c3700d5..099cac6 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -2694,6 +2694,8 @@ class EventServer:
def get_rules_with_active_event_limit(self):
rule_ids = []
for rule_id, num_existing_events in
g_event_status.num_existing_events_by_rule.items():
+ if rule_id == None:
+ continue # Ignore rule unrelated overflow events. They have no rule id
associated.
if num_existing_events >=
g_config["event_limit"]["by_rule"]["limit"]:
rule_ids.append(rule_id)
return rule_ids