Module: check_mk
Branch: master
Commit: 33a8625476f7d71c10930a438d1b28f5d0f02017
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=33a8625476f7d7…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Sep 5 11:58:05 2016 +0200
Fixed broken mail option: Information to be displayed in email body
---
notifications/mail | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/notifications/mail b/notifications/mail
index 817a368..6b3e7fe 100755
--- a/notifications/mail
+++ b/notifications/mail
@@ -694,8 +694,10 @@ def render_performance_graphs(context):
def construct_content(context):
# A list of optional information is configurable via the parameter
"elements"
# (new configuration style)
- if "PARAMETER_ELEMENTS" in context:
- elements = context["PARAMETER_ELEMENTS"].split()
+ # Note: The value PARAMETER_ELEMENTSS is NO TYPO.
+ # Have a look at the function events.py:add_to_event_context(..)
+ if "PARAMETER_ELEMENTSS" in context:
+ elements = context["PARAMETER_ELEMENTSS"].split()
else:
elements = [ "perfdata", "graph", "abstime",
"address", "longoutput" ]