NRPE- Results from amavis_check.pl

Dave Augustus davea at support.kcm.org
Thu Oct 20 06:33:15 CEST 2005


Thank you sir for showing me the direction to run in. I have modified
this script to support NRPE checks and will be posting it on
nagiosexhange.

Dave

On Fri, 2005-10-14 at 09:46 +0200, Andreas Ericsson wrote:
> 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.




-------------------------------------------------------
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