Branch: refs/heads/1.5.0
Home:
https://github.com/tribe29/checkmk
Commit: 203188cf8d5ac8bc3401ca7928c650722ea02d33
https://github.com/tribe29/checkmk/commit/203188cf8d5ac8bc3401ca7928c650722…
Author: Tom Baerwinkel <tom.baerwinkel(a)tribe29.com>
Date: 2019-06-26 (Wed, 26 Jun 2019)
Changed paths:
A .werks/7427
A cmk/notification_plugins/__init__.py
A cmk/notification_plugins/utils.py
M cmk_base/events.py
M notifications/mail
Log Message:
-----------
7427 FIX mail: don't escape state markers in emails
Since version 1.5.0p14 state markers in HTML emails were escaped
and not interpreted as HTML but shown as text. The state marker
for CRIT was e.g. shown as:
<b class="stmarkCRITICAL">CRIT</b>
This werk restores the old behaviour and state markers are shown
in HTML emails as usual.
If you use the macros HOSTOUTPUT_HTML, SERVICEOUTPUT_HTML, or
LONGSERVICEOUTPUT_HTML in custom notification scripts please
switch to the macros HOSTOUTPUT, SERVICEOUTPUT, and
LONGSERVICEOUTPUT which contain the textual state markers
'(!)' and '(!!)' for WARN and CRIT, respectively. The *_HTML
variables will be deprecated in 1.6 and removed in 1.7.
If you want to replace the textual state markers by HTML code
you can use the utility function
cmk.notification_plugins.utils.format_plugin_output.
CMK-2142
Change-Id: I865d491957e04a8943e711fcf46e46ced926f081