Module: check_mk
Branch: master
Commit: 76125168e64cbbcf2b32b71c493ddb5d4199903d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=76125168e64cbb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Apr 14 09:05:08 2014 +0200
Added Date / Time to HTML notification email
---
.werks/883 | 8 ++++++++
ChangeLog | 1 +
notifications/mail | 6 +++++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/883 b/.werks/883
new file mode 100644
index 0000000..aaefbff
--- /dev/null
+++ b/.werks/883
@@ -0,0 +1,8 @@
+Title: Added Date / Time to HTML notification email
+Level: 1
+Component: notifications
+Version: 1.2.5i3
+Date: 1397459095
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 3d936f0..4835d69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -49,6 +49,7 @@
Notifications:
* 0754 Allow users to disable their notifications completely...
* 0755 Added variables LASTHOSTUP_REL and LASTSERVICEOK_REL to notification
context...
+ * 0883 Added Date / Time to HTML notification email
* 0752 FIX: FIX: compute correct state transitions for notifications...
* 0753 FIX: FIX: correctly show original state in HTML notification mails...
diff --git a/notifications/mail b/notifications/mail
index f3aad46..c051b73 100755
--- a/notifications/mail
+++ b/notifications/mail
@@ -233,6 +233,10 @@ tmpl_service_html = tmpl_head_html + '''
<th colspan=2>State</th>
</tr>
<tr class="odd0">
+ <td class="left">Date / Time</td>
+ <td>$LONGDATETIME$</td>
+</tr>
+<tr class="even0">
<td class=left>State</td>
<td class="state">
<span
class="state$PREVIOUSSERVICEHARDSTATE$">$PREVIOUSSERVICEHARDSTATE$</span>
→
@@ -240,7 +244,7 @@ tmpl_service_html = tmpl_head_html + '''
since $LASTSERVICESTATECHANGE_REL$
</td>
</tr>
-<tr class="even0">
+<tr class="odd0">
<td class="left">Output</td>
<td>$SERVICEOUTPUT$</td>
</tr>