We are using in our organization the “check_nwc_health” check for our network devices.
We use the “–multiline” option to get a good overview of the output with line breaks. Unfortunately the line wrapping only works in the HTML GUI and doesn´t work in the notfications.
The “–multiline” option puts HTML code in the output, but our notification script don´t use HTML.
example command line how the notification script is called
notification command
The email looks like a custom html notification, not the standard scripts. The culprit might be in there, from the terminal line breaks (\n) to html (<br>) - such a transformation can be done inside a notification script for example.
Put a line somewhere which modifies the $SERVICEOUTPUT variable before you actually use it in the template. Something like this, but I haven’t tested this.