$LONGSERVICEOUTPUT$ replacing newlines in emails
Posted: Thu Jul 12, 2012 2:18 pm
I created a custom plugin that returns multiple lines of output. I set up my email template to use the $LONGSERVICEOUTPUT$ to output the 2nd through n lines of output. But when the output is sent via an email alert, the email contains one big string of text with the newlines converted to "\n" characters and no actual line breaks.
Is this a setting that I can turn off, or is there some way I can format it so my email will contain actual line breaks? The nagios web interface displays the data as expected including the line breaks. I've tried outputing both "\n" and "\r\n" for the line breaks from the python script but this makes no difference -- The email never contains line breaks.
We're running version 2011R2.2.
Thanks
Is this a setting that I can turn off, or is there some way I can format it so my email will contain actual line breaks? The nagios web interface displays the data as expected including the line breaks. I've tried outputing both "\n" and "\r\n" for the line breaks from the python script but this makes no difference -- The email never contains line breaks.
We're running version 2011R2.2.
Thanks