Module: check_mk
Branch: master
Commit: ad120ca68621671399828f0c0020e578a926cc32
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ad120ca6862167…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Jun 7 13:40:52 2013 +0200
* FIX: contacts with notifications disabled no longer receive
custom notifications, unless forced
---
ChangeLog | 4 ++++
modules/check_mk.py | 1 +
2 files changed, 5 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 8c6f5e8..1ac0fb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -205,6 +205,10 @@
* FIX: fix icon in events check if host specification is by IP address
* Renamed "Delete Event" to "Archive Event" to clearify the
meaning
+ Notifications:
+ * FIX: contacts with notifications disabled no longer receive
+ custom notifications, unless forced
+
1.2.2p1:
Core:
* FIX: correctly quote ! and \ in active checks for Nagios
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 8ca387a..a46641f 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2237,6 +2237,7 @@ def create_nagios_config_contacts(outfile):
for what in [ "host", "service" ]:
no = contact.get(what + "_notification_options", "")
if not no or not not_enabled:
+ outfile.write(" %s_notifications_enabled\t0\n" % what)
no = "n"
outfile.write(" %s_notification_options\t%s\n" % (what,
",".join(list(no))))
outfile.write(" %s_notification_period\t%s\n" % (what,
contact.get("notification_period", "24X7")))