Problems wih NRPE. Really works?

Lewis Getschel lgetschel at denver.westerngeco.slb.com
Wed May 11 21:07:05 CEST 2005


I'm using 1.2, and almost all checks are with nrpe running out of xinetd.
Check to see if your remote host is listening for nrpe. As root run:
netstat -pta | grep nrpe

You should see that it IS listening. on my RHEL I get:
netstat -pta | grep nrpe
tcp        0      0 *:nrpe                  *:*                     
LISTEN      853/xinetd

You say:
"I start the nrpe daemon in the remote host:"
This is NOT needed, inetd will start it for you.

I hope that helps a little.
Lewis

BTW, please don't post your question more than once per 48 hours. Give 
us all time to see it and develop a response.

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 (Solaris 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
>

-- 
Lewis Getschel             | Today is done...
WesternGeco                |     Today was fun...
1625 Broadway              |         Tomorrow is another one.
Denver, CO 80202           |
Direct Phone - 303-389-4407|        -- Dr. Seuss --




-------------------------------------------------------
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_ids93&alloc_id281&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