We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Checkmk 1.6 has arrived! Learn more about it here!

Werk #7427: mail: don't escape state markers in emails

ComponentNotifications
Titlemail: don't escape state markers in emails
Date2019-06-25 10:59:02
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.6.0b3,1.7.0i1,1.5.0p19
LevelTrivial Change
ClassBug Fix
CompatibilityIncompatible - Manual interaction might be required

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.