[checkmk-commits] Check_MK Git: check_mk: RBN: Do not match service events if only host events are configured
Mathias Kettner
mk at mathias-kettner.de
Mon May 26 11:47:51 CEST 2014
Module: check_mk
Branch: master
Commit: 285d9aaf0cd3a67fc8ddd3742e947b1c525ea001
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=285d9aaf0cd3a67fc8ddd3742e947b1c525ea001
Author: Mathias Kettner <mk at mathias-kettner.de>
Date: Mon May 26 11:47:39 2014 +0200
RBN: Do not match service events if only host events are configured
---
modules/notify.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/notify.py b/modules/notify.py
index 9823f1d..4e397e3 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -767,7 +767,7 @@ def rbn_match_servicelevel(rule, context):
def rbn_match_host_event(rule, context):
if "match_host_event" in rule:
if context["WHAT"] != "HOST":
- if "match_host_event" not in rule:
+ if "match_service_event" not in rule:
return "This is a service notification, but the rule just matches host events"
else:
return # Let this be handled by match_service_event
More information about the checkmk-commits
mailing list