nrpe-2.0 on hp-ux 11.11

Rudy Montemayor RMontemayor at huntoil.com
Thu Nov 20 02:14:03 CET 2003


Folks,

I was wondering if anybody has seen this. I compiled nrpe-2.0 on HP-UX 11.11 and I got the following warning during the make:

# /usr/local/bin/gmake all
cd ./src/; /usr/local/bin/gmake ; cd ..
gmake[1]: Entering directory `/var/tmp/nagios/nrpe-2.0/src'
gcc -g -O2 -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c  -lnsl
nrpe.c: In function `wait_for_connections':
nrpe.c:620: warning: passing arg 3 of `getpeername' from incompatible pointer type
gcc -g -O2 -DHAVE_CONFIG_H -o check_nrpe check_nrpe.c utils.c  -lnsl
gmake[1]: Leaving directory `/var/tmp/nagios/nrpe-2.0/src'

*** Compile finished ***

What I'm seeing is that when the check_nrpe plugin on the monitoring system tries to connect with the nrpe daemon on the remote host, the IP address of the monitoring system is messed up, that is totally incorrect and thus is refused connection by the nrpe daemon. It's only when I add this bogus IP address to the nrpe.cfg file on the "allowed_hosts" line on the remote host that I get this to work. I'm assuming that my problem is coming from the "getpeername" arg3 mismatch.

Any help would be appreciated. Thanks.

Rudy
rmontemayor at huntoil.com


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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