Module: check_mk
Branch: master
Commit: cad1ea9869259b4929f6d85db38383929fdf0ed1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cad1ea9869259b…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Sep 28 16:10:21 2015 +0200
#2432 Forwarded notifications are now visible within the rule based notifications
analysis
The context of forwarded notifications was not stored for debug purposes on the
notification receiver.
Therefore forwarded notifications were never shown in the analysis page of the master
site.
---
.werks/2432 | 10 ++++++++++
ChangeLog | 1 +
modules/notify.py | 2 ++
3 files changed, 13 insertions(+)
diff --git a/.werks/2432 b/.werks/2432
new file mode 100644
index 0000000..8999acf
--- /dev/null
+++ b/.werks/2432
@@ -0,0 +1,10 @@
+Title: Forwarded notifications are now visible within the rule based notifications
analysis
+Level: 1
+Component: notifications
+Compatible: compat
+Version: 1.2.7i3
+Date: 1443449084
+Class: feature
+
+The context of forwarded notifications was not stored for debug purposes on the
notification receiver.
+Therefore forwarded notifications were never shown in the analysis page of the master
site.
diff --git a/ChangeLog b/ChangeLog
index 4843dc4..7df83b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -291,6 +291,7 @@
Notifications:
* 2478 Integrated notification plugin for mobile phone push messages via Pushover...
* 1295 RBN Rules can now also match service event type OK to OK...
+ * 2432 Forwarded notifications are now visible within the rule based notifications
analysis...
* 2313 FIX: notification bulking: fixed exception for plugins which are not
configured with checkboxes, e.g. sms
* 2347 FIX: Improved error message in notify.log when sendmail is missing
* 2348 FIX: HTML-Mails: Added missing link to service descriptions
diff --git a/modules/notify.py b/modules/notify.py
index 4a4071f..5be18a5 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -1191,6 +1191,8 @@ def handle_spoolfile(spoolfile):
raw_context = data["context"]
notify_log("Got spool file %s (%s) from remote host for local
delivery." % (
notif_uuid[:8], find_host_service_in_context(raw_context)))
+
+ store_notification_backlog(data["context"])
locally_deliver_raw_context(data["context"])
return 0 # No error handling for async delivery