Page 1 of 1

output illegal characters

Posted: Thu Jul 12, 2012 11:39 am
by cemel
We are running check_nrpe plugin to monitor Windows Event log messages.
Number of our error outputs consists pipe line character "|". Nagios cut alerts by this pipe character.
When I run this check_nrpe from command line I am receiving correct output with "|" and text after it.
In order to make it works we have enabled variable
illegal_macro_output_chars=`~$&|'"<>
in nagios.cfg. (Nagios XI was restarted after this change.)
We currently running Nagios XI 2011R3.2.
Does anybody know anything about this problem and solution?

Thank you.

Re: output illegal characters

Posted: Thu Jul 12, 2012 12:48 pm
by scottwilkerson
Normally Nagios splits the plugin output with the | and everything to the right of the | is performance data.

http://nagiosplug.sourceforge.net/devel ... lines.html

Re: output illegal characters

Posted: Thu Jul 12, 2012 3:59 pm
by cemel
As I understand illegal_macro_output_chars cannot help with my issue.
DO you have any suggestion how to resolve my problem.

Re: output illegal characters

Posted: Thu Jul 12, 2012 4:33 pm
by slansing
Have you attempted to use this addon yet?: http://exchange.nagios.org/directory/Ad ... on/details

Additional NRDS_Win can passively monitor the logs: http://exchange.nagios.org/directory/Ad ... on/details

As NRDS_Win allows you to use any plugin you would like, this enhanced event log plugin may do the trick for you: http://exchange.nagios.org/directory/Ad ... ck/details

Re: output illegal characters

Posted: Fri Jul 13, 2012 2:04 pm
by cemel
Problem is not in NRPE it is in Nagios, So no reasons to change NRPE to anything else.

Re: output illegal characters

Posted: Fri Jul 13, 2012 2:20 pm
by scottwilkerson
cemel,

the only solution I can see would be to have your plugin convert the | to a different character.

Nagios Plugin guidelines clearly state that the | is the separator for performance data, so it is going to interpret everything to the right of the first | as performance data.