NAGIOS does not register "Critical" | "Warning" status.

socomm socomm at crowbar.cc
Wed Feb 23 02:17:41 CET 2011


On Mon, 21 Feb 2011 20:23:54 -0500, Allan Clark
<allanc at chickenandporn.com>
wrote:
> Can you confirm that "%%" is needed for a single "%" token?  I don't
> remember that being needed, but I don't use "%" in my commands.  I
> could see "$" needing doubling up due to token replacement.

Apparently check_nt will returns same code whether I pass it the '%' sign
or not, however the double '%' was a typo which I've corrected.

> Also, see about increasing logging, see if you can log what the actual
> command is running as, and what it responds as a result code.  Maybe
> proving that the check_nt script is being called in the way you think
> it is can help bisect the problem.

I am looking for a way to log commands, but best I've found is the debug
option which will give me option to log commands to a debug file. However,
the output I get is the following:

-----  OUTPUT  -----

Raw Command Input: /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c
$ARG1$
Expanded Command Output: /usr/lib/nagios/plugins/check_nrpe -H
$HOSTADDRESS$ -c $ARG1$

--------------------

Which I'm not sure why variables are not being expanded to the actual
arguments being passed. Anyone more familiar as what I may need to do to
view the expanded variables being passed?




------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list