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?
|
Remove the characters from the | |||||||
feedback
|
|
Try escaping the output with a perl function. Without the scripts I can't provide a solution to you but here is an example:
or to just remove them:
| |||
|
feedback
|
illegal_object_name_charsandillegal_macro_output_charsfrom the nagios.cfg have no effect on the SERVICEOUTPUT. – timd Mar 2 '11 at 18:22