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.
output illegal characters
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: output illegal characters
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
http://nagiosplug.sourceforge.net/devel ... lines.html
Re: output illegal characters
As I understand illegal_macro_output_chars cannot help with my issue.
DO you have any suggestion how to resolve my problem.
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
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
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
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
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.
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.