NRPE- Results from amavis_check.pl

Andreas Ericsson ae at op5.se
Fri Oct 14 09:46:07 CEST 2005


Dave Augustus wrote:
> Hello All,
> 
> I am trying to check the status of amavisd on a remote host via NRPE.
> 
> I am using the amavis-check.pl from nagiosexchange.org .
> 
> When I check locally, I get accurate responses. However, when via NRPE,
> I always get OK, even though NRPE receives the response of CRITICAL.
> 
> Here is the local plugin output:
> 
> ./amavis_check.pl --server localhost --from davea at support.kcm.org --to
> davea at support.kcm.org --port 10024
> CRITICAL - amavisd-new server unreachable
> 
> 
> Here is the NRPE output:
> ./check_nrpe -H rs1.kcm.org -c check_amavisd
> CRITICAL - amavisd-new server unreachable
> 
> nrpe.cfg contains the command definition:
> command[check_amavisd]=/usr/lib/nagios/kcm_plugins/amavis_check.pl --
> server localhost --from davea at support.kcm.org --to davea at support.kcm.org
> --port 10024
> 
> THE PROBLEM IS:
> The status that nagios has on this check is ALWAYS OK!!!
> 
> Any ideas?
> 

The plugin issues exit(0) somewhere, or silently drops off the end of 
the script which also causes its exit status to be 0. Neither Nagios nor 
NRPE cares about what a plugin prints. NRPE only forwards the 
exit-status of the program, and Nagios uses that and that only to 
determine the status.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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