Module: check_mk
Branch: master
Commit: da78acd34914ad09f561e1e304cb321f77dc50e5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=da78acd34914ad…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 14 15:29:15 2016 +0100
4149 FIX Fix notifications from Event Console if host has more than one contact
Notifications from the Event Console would never be sent if the
contact information had to be fetched from the host (not coded in
the rule itself) and the host had more than one contact.
Change-Id: I227649bcc62934b6637ef51b00c11ead8727efe1
---
.werks/4149 | 11 +++++++++++
ChangeLog | 1 +
bin/mkeventd | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/4149 b/.werks/4149
new file mode 100644
index 0000000..4ee2ae2
--- /dev/null
+++ b/.werks/4149
@@ -0,0 +1,11 @@
+Title: Fix notifications from Event Console if host has more than one contact
+Level: 2
+Component: ec
+Compatible: compat
+Version: 1.4.0i3
+Date: 1481725686
+Class: fix
+
+Notifications from the Event Console would never be sent if the
+contact information had to be fetched from the host (not coded in
+the rule itself) and the host had more than one contact.
diff --git a/ChangeLog b/ChangeLog
index 34f6ee7..963671d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -132,6 +132,7 @@
* 4148 EC: reorder entries in Performance snapin, add overflows and load
* 4097 FIX: Event console: Make writing of status file more robust...
* 4147 FIX: Always show rule analyser result on Generate, not only after previous Try
out...
+ * 4149 FIX: Fix notifications from Event Console if host has more than one
contact...
Livestatus:
* 3651 FIX: Fixed potential segfault with Nagios core when accessing log/commands
table via Livestatus....
diff --git a/bin/mkeventd b/bin/mkeventd
index 4e85f67..38c5ac2 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -4029,7 +4029,7 @@ def add_rbn_contact_information(context, host, contact_groups,
contact_groups_no
verbose(" Using these groups: %r" % groups)
context.update({
- "CONTACTS" : " ".join(contacts),
+ "CONTACTS" : ",".join(contacts),
"CONTACTNAME" : "check-mk-notify",
"SERVICECONTACTGROUPNAMES" : ",".join(groups),
})