Notification formatting question, line breaks in email
Posted: Sat Sep 10, 2016 3:50 pm
Hi there,
I'm trying to get the long service output from a check plugin into the email notification alerts.
This is what the plugin looks like after a proper check

Normally, I get an email with the text in the red box via the %serviceoutput% macro.
I added %longserviceoutput% to my notification template, and I sort-of get the output in the blue box.
This is what I see:
You will notice the \n line breaks in there. Is there any way to actually translate those into line returns to have the text formatted as shown in the blue box?
I'm trying to get the long service output from a check plugin into the email notification alerts.
This is what the plugin looks like after a proper check

Normally, I get an email with the text in the red box via the %serviceoutput% macro.
I added %longserviceoutput% to my notification template, and I sort-of get the output in the blue box.
This is what I see:
Code: Select all
Info:
OK=18 WARNING=1 (threshold: 1) CRITICAL=1 (threshold: 1) UNKNOWN=0 (threshold: 1) services=// hosts=/Empire/
Services in WARNING:\n Empire - VoIP Dual-WAN Router = ether1-cpu - INTERNET Status\nServices in CRITICAL:\n Empire Internet Mikrotik = eth4-lan-maint Status