Need to have illegal characters in Nagios SERVICEOUTPUT and LONGSERVICEOUTPUT

nagios

I have a Nagios check_log style perl script that is called via check_by_ssh. The log file entries can contain characters like '>' and '$', which are dangerous and not allowed in SERVICEOUTPUT or LONGSERVICEOUTPUT. The output is stripping these characters making the alerts hard to read. Is there a workaround for escaping characters in SERVICEOUTPUT, or an option to tun on this dangerous activity?

Best Answer

Remove the characters from the illegal_macro_output_chars config option.