[Nagiosplug-help] nrpe on hp-ux 11.11

Rudy Montemayor RMontemayor at huntoil.com
Thu Nov 20 11:54:07 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




More information about the Help mailing list