Module: check_mk
Branch: master
Commit: 5df2937c47fba29b6f8e93ee0f184a583f3a3007
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5df2937c47fba2…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jun 24 14:49:26 2013 +0200
notification: service level: use host service level
if services service level is missing
---
modules/notify.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/notify.py b/modules/notify.py
index 0c47e36..a50e6a1 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -540,7 +540,7 @@ def should_notify(context, entry):
# Check if the host has to be in a special service_level
if "match_sl" in entry:
from_sl, to_sl = entry['match_sl']
- if context['WHAT'] == "SERVICE":
+ if context['WHAT'] == "SERVICE" and
context.get('SVC_SL','').isdigit():
sl = saveint(context['SVC_SL'])
else:
sl = saveint(context['HOST_SL'])