NRPE Not listening

Jeffcoat, Al ajeffco at orhs.org
Wed Aug 14 17:29:05 CEST 2002


Well, that was a good idea, and I tried that, but here I think is the
real problem for both NRPE and NSCA.  When I run the ./configure and
then "make all", during the make, I get these errors...
 
These errors come with the cc that comes with DEC
--- cut ---
# make all
cd ./src/; make ; cd ..
cc -g -DHAVE_CONFIG_H   nrpe.c netutils.c -o nrpe
nrpe.c:
cc: Warning: nrpe.c, line 354: In this statement, & before array
"myname.sin_zero" is ignored. (addrarray)
        bzero(&myname.sin_zero,8);
--------------^
netutils.c:
ld:
Unresolved:
snprintf
*** Exit 1
Stop.
*** Exit 1
Stop.
--- end of cut
 
These are the errors that come with gcc 
--- cut ---
# make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/usr/users/tomb/al/nrpe-1.5/src'
gcc -g -O2 -DHAVE_CONFIG_H   nrpe.c netutils.c -o nrpe
nrpe.c: In function `wait_for_connections':
nrpe.c:354: warning: passing arg 1 of `bzero' from incompatible pointer
type
nrpe.c: In function `handle_connection':
nrpe.c:613: warning: passing arg 1 of `bzero' from incompatible pointer
type
netutils.c: In function `my_connect':
netutils.c:71: warning: cast from pointer to integer of different size
/usr/bin/ld:
Unresolved:
snprintf
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/usr/users/tomb/al/nrpe-1.5/src'
 
*** Compile finished ***
--- end cut ---
 
The compile finishes, and creates a nrpe and check_nrpe file...  I tried
to install the gnu ld, but that breaks gcc on osf1.  Well, mine,
anyway...
 
NSCA finishes with a "collect2: ld returned 1 exit status" error, and
doesn't create anything...
 
Al
 
-----Original Message-----
From: Scott [mailto:lists.scott at themagicbox.net] 
Sent: Wednesday, August 14, 2002 10:48 AM
To: Jeffcoat, Al; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] NRPE Not listening
 
Have you tried nsca, I havent tried nrpe at all because I tried nsca
first and it worked very very well, it also does encryption with
passwords which makes it a nicety!!
 
As I said I cant comment on NRPE as I havent actually used it yet..
	----- Original Message ----- 
	From: Jeffcoat, Al <mailto:ajeffco at orhs.org>  
	To: nagios-users at lists.sourceforge.net 
	Sent: Thursday, August 15, 2002 12:28 AM
	Subject: [Nagios-users] NRPE Not listening
	 
	Hi All,
	 
	I've got Nagios running nicely on my linux and AIX servers.  
	 
	Now, I'm trying to install it onto a DEC Alpha we have.  I got
the plugins to compile, and nrpe seems to compile with no problems.  I
edited the nrpe.cfg file, and added the ip of my Nagios server.  When I
try to run a plugin from my Nagios server (ie, "[root at nagios libexec]#
./check_nrpe eagle -c check_load"), I get: CHECK_NRPE: Received 0 bytes.
Are we allowed to connect to the host?
	 
	I have checked the config file for the address about 10 times to
make sure that it was right, and it still doesn't want to answer.
	
	So, I saw that the config file says that if it runs under inetd,
it ignores that.  So, I tried to start it under inetd, and it seems like
it doesn't ever start.  When I run netstat -a | grep nrpe, it show's
nothing.  Likewise, I also tried netstat -a | grep 5666, and nothing.
I've also added nrpe to the services file.  When I add it to the
inetd.conf, and restart inetd, I get "connection refused by host" from
check_nrpe.
	 
	Anyone else had luck getting nrpe to work under OSF/1(aka
TruUNIX) 4.0F?
	 
	Al Jeffcoat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20020814/8c925e4c/attachment.html>


More information about the Users mailing list