Skip to content
Permalink
Browse files

RBN: Do not match service events if only host events are configured

  • Loading branch information
MathiasKettner committed May 26, 2014
1 parent 9c56557 commit 285d9aaf0cd3a67fc8ddd3742e947b1c525ea001
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 285d9aa

Please sign in to comment.
You can’t perform that action at this time.