Can you help me with nrpe? How works it?

Askar Ali askarali at beaconet.net
Sat May 14 12:36:12 CEST 2005


Yolanda Santos wrote:

>Hi!!
>
>I get the nrpe-2.0.tar and I copy it in the Nagios host (Linux Red
>Hat) and in a remote host (Solares 8)
>
>In both of them I compile and make it, as the documentation explains.
>./configure
>make all
>
>Nagios Host:
>==========
>I have installed Nagios in /opt/nagios, so I copy 'check_nrpe' client
>to the directory /opt/nagios/libexec
>I create a command definition in the Nagios config file for the NRPE
>client (as the documentation explains)
>
>Remote Host:
>==========
>Add in /etc/services the line:   
>		 nrpe		5666/tcp		#NRPE
>I use inetd with tcpwrappers so, in the /etc/inetd.conf file I add:
>	nrpe	stream	       tcp      nowait    nagios  /usr/sbin/tcpd  
>/opt/nagios/nrpe  -c /opt/nagios/nrpe.cfg  --inetd
>
>I restart the inetd 
>
>(I have the nrpe binary and nrpe.cfg in the remote host, in '/opt/nagios/')
>
>
>In nrpe.cfg I add the line:
>
>command[check_load]=/opt/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
>
>(the check_load command is only in the Nagios host, not in the remote host)
>
>I start the nrpe daemon in the remote host:
>		nrpe    -c   /opt/nagios/nrpe.cfg –i
>
>
>
>
>In the Nagios host I try to get data:
>
>./check_nrpe -H 10.190.8.12 -c check_load
>
>and I get the message:
>
>CHECK_NRPE: Socket timeout after 10 seconds.
>
>
>What I am doing wrong?
>Why I can't obtein data from the remote host?
>N¬HS^µéšŠX¬²š'²ŠÞu¼Ž­§%y*Zqä°yêlµ©±f§¶ÚzØ^~*ì¶Ê·«yׯzZ)z¸§²–œxIíz¹èÁú+¶Ž­§%y*Zqä°yêlµ©²m§ÿÚvÊ,vw(›ö‰ÐßÝÚ–Z‰Ðëo5¢–'$5¨"¢Ë¬z»&j)bž	b²ÓZ‚*,ºÇ«²X¬¶Ë(º·~Šàzw­†Ûi³ÿåŠËl²‹«qç讧zßåŠËlþX¬¶)ߣùÚ‚*,ºÇ«°ù^jÇ¢ÉnuãZ‚*,½ê슉é–è"ž÷«²*'½©Ý9,!zzÞ¦ŠíŠxŸ(¬²çŒzˁë0ŠØhºÛ.¦š+¶)àŠwèÂ)e®+$m观ǧ¶Ú?uëÿžée
>
Give a try to run nrpe on remote host as daemon instead of under xinit.. 
thingy

nrpe  -c /pathTo..nrpe.cfg -d

make sure you have set the line in nrpe.cfg to allow the nagios machine 
to connection to nrpe on port 5666

#allowed_hosts=127.0.0.1,xxx.xxx.xxx.xxx


After running nrpe make sure it is running

#netstat -tuanp | grep nrpe
tcp        0      0 0.0.0.0:5666            0.0.0.0:*               
LISTEN      9583/nrpe


Then from nagios machine test again as you did it before with the same 
command.

regards

Askar


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
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