Module: check_mk
Branch: master
Commit: 9272cfc1c6023f2c68b0e1f5a4ab528609bedace
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9272cfc1c6023f…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Mar 1 11:48:13 2016 +0100
#2999 The contact name is now included in Event Console notifications
The contact name is available in the environment variable NOTIFY_EC_CONTACT.
---
mkeventd/bin/mkeventd | 1 +
1 file changed, 1 insertion(+)
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index 7e0f138..28a8812 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -3362,6 +3362,7 @@ def do_notify(event, username, is_cancelling):
"EC_PHASE": event["phase"],
"EC_COMMENT": event.get("comment",
""),
"EC_OWNER": event.get("owner",
""),
+ "EC_CONTACT": event.get("contact",
""),
"EC_PID": str(event.get("pid", 0)),
"EC_MATCH_GROUPS":
"\t".join(event["match_groups"]),
"EC_CONTACT_GROUPS": event["contact_groups"] and
" ".join(event["contact_groups"]) or "",