I think you’re looking for illegal_macro_output_chars in /omd/sites/SITENAME/etc/nagios/nagios.d/misc.cfg
From the nagios docs:
Illegal Macro Output Characters
Format: illegal_macro_output_chars=<chars…>
Example: illegal_macro_output_chars=`~$^&"|’<>
This option allows you to specify illegal characters that should be stripped from macros before being used in notifications, event handlers, and other commands. This DOES NOT affect macros used in service or host check commands. You can choose to not strip out the characters shown in the example above, but I recommend you do not do this. Some of these characters are interpreted by the shell (i.e. the backtick) and can lead to security problems. The following macros are stripped of the characters you specify:
$HOSTOUTPUT$, $HOSTPERFDATA$, $HOSTACKAUTHOR$, $HOSTACKCOMMENT$, $SERVICEOUTPUT$, $SERVICEPERFDATA$, $SERVICEACKAUTHOR$, and $SERVICEACKCOMMENT$
Ryan Brosz | Linux System Administrator | Dice Holdings, Inc.
Dice | eFinancialCareers | ClearanceJobs | Rigzone | HealthCallings | Targeted Job Fairs
O: 515.313.2792 | C: 515.423.5838 | ryan.brosz@dice.com
···
From: checkmk-en-bounces@lists.mathias-kettner.de [mailto:checkmk-en-bounces@lists.mathias-kettner.de] On Behalf Of Balaban, Dan
Sent: Wednesday, March 05, 2014 9:15 AM
To: checkmk-en
Subject: [Check_mk (english)] FW: Location of Notification code??
Trying again on this one.
Dan Balaban
email: dan.balaban@mlp.com
millennium
From: Balaban, Dan
Sent: Tuesday, January 28, 2014 11:43 AM
To: checkmk-en
Subject: Location of Notification code??
Does anyone know the location of the notification code? I’m looking mknotifyd but that doesn’t appear to be it.
Specifically I’m looking for the part that parses the output from checks prior to actually sending a notification, and strips out HTML braces (< >).
I’d like to see HTML added in the Status Detail of local checks make it all the way to the email or flexible notifications, but it’s not.
Dan Balaban
email: dan.balaban@mlp.com
millennium
The information contained in this communication is confidential and may contain information that is privileged or exempt from disclosure under applicable law. If you are not a named addressee, please notify the sender immediately and delete this email from your system. If you have received this communication, and are not a named recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.