Return Code 127

Andreas Ericsson ae at op5.se
Tue Dec 19 10:16:41 CET 2006


Kaplan, Andrew H. wrote:
> I checked the commands.cfg file and modified the command syntax of check_nrpe
> from /usr/lib/nagios/plugins/check_nrpe to $USER1$/check_nrpe.
> 
> The result was I am no longer getting the 127 error, but I am now faced
> with another issue. 
> 
> The new error that I am seeing is:
> 
> CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for
> error messages.
> 
> I checked the HP-UX 11.11 box and the syslog.log file had the following 
> entry:
> 
> Host 0.0.0.0 is not allowed to talk to us!
> 

It seems there's a bug in HP-UX or you have some extremely odd firewall 
installed. This is supposed to print the ip-address of the connecting host.

> I checked the nrpe.cfg file and under SERVER ADDRESS, I have nrpe bound to
> client's ip address, and under ALLOWED HOSTS, I have several addresses,
> including the Nagios 2.6 server, that are permitted to talk to NRPE on the
> client. 
> 

Quick and dirty hack: Add "0.0.0.0" to the list of allowed_hosts. This 
will make it work but will most likely also make it possible to query 
the host from any other server on the network.

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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