NRPE gives wrong exit codes

Hiren Patel hir3npatel at gmail.com
Mon Sep 7 18:24:27 CEST 2009


>>> Versions:
>>>
>>> check_nrpe (from openSUSE Build Service)
>>> --------------
>>> NRPE Plugin for Nagios
>>> Copyright (c) 1999-2008 Ethan Galstad (nagios at nagios.org)
>>> Version: 2.12
>>> Last Modified: 03-10-2008
>>> License: GPL v2 with exemptions (-l for more info)
>>> SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required
>>> -------------
>>>
>>> remote NRPE agent (compiled from source)
>>> -------------
>>> spmon:~ # /usr/lib/nagios/plugins/check_nrpe -H solaris
>>> NRPE v2.12
>>> ------------
>>>
>>> Any ideas?, I have a truss capture of the daemon from a working
>>> execution and a non-working execution if anyone would like to check
>>> them (don't know if attachments are allowed)
>>>
> 
> Debug is ON already, but all I get in the logs is the start/stop process:
> 
> -------
> Sep  7 11:55:48 billbd2 nrpe[11796]: [ID 678021 daemon.notice] Caught
> SIGTERM - shutting down...
> Sep  7 11:55:48 billbd2 nrpe[11796]: [ID 915785 daemon.error] Cannot
> remove pidfile '/var/run/nrpe.pid' - check your privileges.
> Sep  7 11:55:48 billbd2 nrpe[11796]: [ID 938771 daemon.notice] Daemon shutdown
> Sep  7 11:55:52 billbd2 nrpe[23649]: [ID 601491 daemon.notice]
> Starting up daemon
> Sep  7 11:55:53 billbd2 nrpe[23649]: [ID 627629 daemon.notice]
> Warning: Daemon is configured to accept command arguments from
> clients!
> --------
> 

you have debug=1 in your config file? you ran the remote nrpe checks 
after restarted in debug mode? it should print the command requested and 
the results of running the command.
you're running the 2.12 nrpe server right?
how did you install the nrpe server on solaris, packages or compiled?

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july




More information about the Developers mailing list