I have situation as follows:
Our XI servers are monitoring syslog messages and sometimes these messages contain "|" symbol, these are obviously translated as performance data which it is not
To give more idea: I have the syslog monitoring setup as follows:
Syslog is picked up by Syslog-ng , a watcher scripts tails the file and tries to obtain pattern matches on match it sends the matching line with the appropriate Nagios return code .
I am assuming in the watcher script I need to escape the | , what I should be doing easiest would be if I put quotes around the whole output ?
Any ideas!