output illegal characters

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cemel
Posts: 4
Joined: Thu Jul 12, 2012 11:11 am

output illegal characters

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: output illegal characters

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cemel
Posts: 4
Joined: Thu Jul 12, 2012 11:11 am

Re: output illegal characters

Post by cemel »

As I understand illegal_macro_output_chars cannot help with my issue.
DO you have any suggestion how to resolve my problem.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: output illegal characters

Post 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
cemel
Posts: 4
Joined: Thu Jul 12, 2012 11:11 am

Re: output illegal characters

Post by cemel »

Problem is not in NRPE it is in Nagios, So no reasons to change NRPE to anything else.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: output illegal characters

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked