Module: check_mk
Branch: master
Commit: e69be2ae37b2ad9267007cad4c233051557e9b25
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e69be2ae37b2ad…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 6 13:56:30 2012 +0200
Contacts can now define *_notification_commands attributes which can now
override the default notification command check-mk-notify
---
ChangeLog | 2 ++
modules/check_mk.py | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4d4d2e3..2612221 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
end of each rule.
* parent scan: skip gateways that are reachable via PING
* Allow subcheck to be in a separate file (e.g. foo.bar)
+ * Contacts can now define *_notification_commands attributes which can now
+ override the default notification command check-mk-notify
Checks & Agents:
* New Checks for Siemens Blades (BX600)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 2f00b2b..46e01d2 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2087,7 +2087,7 @@ def create_nagios_config_contacts(outfile):
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")))
- outfile.write(" %s_notification_commands\tcheck-mk-notify\n" %
what)
+ outfile.write(" %s_notification_commands\t%s\n" % (what,
contact.get("%s_notification_commands" % what, "check-mk-notify")))
outfile.write(" contactgroups\t\t\t%s\n" % ",
".join(cgrs))
outfile.write("}\n\n")