Module: check_mk
Branch: master
Commit: b0b3111bc1647eba6a169831a6d19b9433c77b3f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0b3111bc1647e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Nov 7 13:33:39 2012 +0100
New notifications: intermediate state
---
modules/notify.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/modules/notify.py b/modules/notify.py
index 92791c6..18f858c 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -191,14 +191,22 @@ def notify_flexible(contact, context, notification_table):
for entry in notification_table:
plugin = entry["plugin"]
notify_log("Plugin: %s" % plugin)
- if entry["disabled"]:
+
+ # Check disabling
+ if entry.get("disabled"):
notify_log("- Skipping: it is disabled for this user")
continue
+
+ # Check service, if configured
+ if entry.get(["
+
+
# Was fehlt noch?
# 1. Event-Typ filtern
# 2. timepreriod filtern (dazu Livestatusanfrage notwendig, wenn nicht 7X24
# 3. Eskalation
# 4. Dann das Plugin aufrufen, dabei aber das Environment vorher vorbereiten
+ # 5. Services
notify_log(repr(notification_table))