Module: check_mk
Branch: master
Commit: 00c51f41b625ef8b8077470056c632797e25fe8a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=00c51f41b625ef…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Sep 1 16:50:06 2014 +0200
#1151 Add variables (HOST/SERVICE)ACK(AUTHOR/COMMENT) to notification context
The four variables <tt>HOSTACKAUTHOR</tt>,
<tt>HOSTACKCOMMENT</tt>,
<tt>SERVICEACKAUTHOR</tt> and <tt>SERVICEACKCOMMENT</tt> can now
be used. In
notifications for acknowledgements these variables reflect the author and
the comment of the acknowledgement.
---
.werks/1151 | 13 +++++++++++++
ChangeLog | 1 +
check_mk_templates.cfg | 4 ++++
3 files changed, 18 insertions(+)
diff --git a/.werks/1151 b/.werks/1151
new file mode 100644
index 0000000..229a7fe
--- /dev/null
+++ b/.werks/1151
@@ -0,0 +1,13 @@
+Title: Add variables (HOST/SERVICE)ACK(AUTHOR/COMMENT) to notification context
+Level: 1
+Component: notifications
+Compatible: compat
+Version: 1.2.5i6
+Date: 1409582877
+Class: feature
+
+The four variables <tt>HOSTACKAUTHOR</tt>,
<tt>HOSTACKCOMMENT</tt>,
+<tt>SERVICEACKAUTHOR</tt> and <tt>SERVICEACKCOMMENT</tt> can now
be used. In
+notifications for acknowledgements these variables reflect the author and
+the comment of the acknowledgement.
+
diff --git a/ChangeLog b/ChangeLog
index 02982da..ec60de6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -90,6 +90,7 @@
* 1101 FIX: WATO check parameter: renamed 'Nominal Voltages' to 'Voltage
Levels..'
Notifications:
+ * 1151 Add variables (HOST/SERVICE)ACK(AUTHOR/COMMENT) to notification context...
* 1156 FIX: Graphs in HTML mails are now sent again where they where missing...
* 1157 FIX: Fixed SMS plugin on at least debian (distrs which have no
sendsms/smssend)...
diff --git a/check_mk_templates.cfg b/check_mk_templates.cfg
index d0469b5..7cef53f 100644
--- a/check_mk_templates.cfg
+++ b/check_mk_templates.cfg
@@ -395,6 +395,10 @@ define command {
NOTIFY_NOTIFICATIONAUTHOR='$NOTIFICATIONAUTHOR$' \
NOTIFY_NOTIFICATIONAUTHORNAME='$NOTIFICATIONAUTHORNAME$' \
NOTIFY_NOTIFICATIONAUTHORALIAS='$NOTIFICATIONAUTHORALIAS$' \
+ NOTIFY_SERVICEACKAUTHOR='$SERVICEACKAUTHOR$' \
+ NOTIFY_SERVICEACKCOMMENT='$SERVICEACKCOMMENT$' \
+ NOTIFY_HOSTACKAUTHOR='$HOSTACKAUTHOR$' \
+ NOTIFY_HOSTACKCOMMENT='$HOSTACKCOMMENT$' \
NOTIFY_HOSTGROUPNAMES='$HOSTGROUPNAMES$' \
NOTIFY_HOSTTAGS='$_HOSTTAGS$' \
NOTIFY_HOST_SL='$_HOSTEC_SL$' \