<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=157595409-12102007>Hi </SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Sukesh /IT/BLR/JIG/IN
[mailto:sukesh.v@jigrahak.com] <BR><B>Sent:</B> 12 October 2007
04:17<BR><B>To:</B> Welsh,T,Tom,DLS C<BR><B>Subject:</B> RE: [Nagios-users] nrpe
problem<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=765271603-12102007>This is my remote host log messages</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=765271603-12102007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Oct 11 07:00:13
ngapps-prd xinetd[619]: START: nrpe pid=1767 from=192.168.1.84<BR>Oct 11
07:00:15 ngapps-prd nrpe[1767]: Could not read request from client, bailing
out...<BR>Oct 11 07:00:15 ngapps-prd xinetd[619]: EXIT: nrpe status=0 pid=1767
duration=2(sec)<BR></DIV></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> tom.welsh@bt.com [mailto:tom.welsh@bt.com]
<BR><B>Sent:</B> Thursday, October 11, 2007 6:07 PM<BR><B>To:</B>
sukesh.v@jigrahak.com; nagios-users@lists.sourceforge.net<BR><B>Subject:</B> RE:
[Nagios-users] nrpe problem<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B>
nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>On Behalf Of </B>Sukesh
/IT/BLR/JIG/IN<BR><B>Sent:</B> 11 October 2007 10:48<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] nrpe
problem<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=312304209-11102007><FONT face=Arial
size=2>Hi</FONT></SPAN></DIV>
<DIV><SPAN class=312304209-11102007><FONT face=Arial size=2>Iam running
nagios-3.0a4 and nrpe V2.8.1.iam not getting the result while running
./check_nrpe -H <IP Address>. alreday no firewall is running behind those
servers .tried to put '-t' option also but didn't work.Still iam able to telnet
5666 with out any problem/so please help him for this.(iam able to access one
server and client using nrpe daemon other could not)/</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV class=Section1>
<DIV>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks,</SPAN><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Sukesh </SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">.<o:p></o:p></SPAN></P>
<DIV>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007><FONT color=#0000ff>Hi Sukesh,</FONT></SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007><FONT color=#0000ff>From reading your email i take it
you can sucessfully connect to the remote NRPE host via
telnet.</FONT></SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007> user<FONT color=#0000ff><A
href="mailto:user2@usel">2@usel</A>:~> telnet host1.somedomain.com
5666<BR> Trying xxx.xxx.xxx.199...<BR> Connected to
host1.somedomain.com.<BR> Escape character is
'^]'.</FONT></SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007><FONT color=#0000ff>If this is correct then NRPE is
accepting connections.</FONT></SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007><FONT color=#0000ff>You said in the previous mail that
NRPE is working correctly on one machine but not on another. This sounds like
you have some configuration differences between the two
boxes.</FONT></SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007>We really need to have more details to help you with
this problem.</SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007>What OS is running on the two remote
boxes?</SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007>Is it the same OS on both boxes.</SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007>Can you send snippets off your configuration THAT
RELATE TO nrpe? NRPE.CFG. SERVICES.CFG CHECKCOMMAND.CFG etc</SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007>Have you carried out the following</SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007>Turn on debugging on the remote host running nrpe and
see what comes out in the logs?</SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007>To do this edit your nrpe.cfg file and turn debugging
on</SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007>debugging=1</SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007>An example off NRPE debugging turned
on</SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007></SPAN></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><SPAN
class=185282312-11102007><FONT color=#0000ff>Oct 11 13:30:01 host1
nrpe[3950]: Added command[check_dns1]=/usr/local/nagios/libexec/check_dns -H <A
href="http://www.teeks.org">www.teeks.org</A> -w 1 -c 2<BR>Oct 11
13:30:01 host1 nrpe[3950]: Added
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 30% -c 20%<BR>Oct 11
13:30:01 host nrpe[3950]: Added
command[check_ntp]=/usr/local/nagios/libexec/check_ntp -H xxx.xxx.xxx-t
15<BR>Oct 11 13:30:01 host nrpe[3950]: INFO: SSL/TLS initialized. All
network traffic will be encrypted.<BR>Oct 11 13:30:01 host nrpe[3950]:
Handling the connection...</FONT></SPAN></SPAN></P>
<P><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN
class=157595409-12102007>Hi Sukesh,</SPAN></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN
class=157595409-12102007>Please dont respond to me directly. Please respond via
the mailing list. Also please ost your reply comments at the bottom off
teh email as it makes it easier to read it in chronological order. Well enough
off that spagetti, back to your problem.</SPAN></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN
class=157595409-12102007>Your log extract</SPAN></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN
class=157595409-12102007>---------------<SNIP><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN
class=157595409-12102007>---------------</SPAN></o:p></SPAN></SPAN></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN
class=157595409-12102007><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN
class=157595409-12102007></SPAN></o:p></SPAN></SPAN></o:p></SPAN><o:p><FONT
face=Arial color=#0000ff size=2>Oct 11 07:00:13 ngapps-prd xinetd[619]: START:
nrpe pid=1767 from=192.168.1.84<BR>Oct 11 07:00:15 ngapps-prd nrpe[1767]: Could
not read request from client, bailing out...<BR>Oct 11 07:00:15 ngapps-prd
xinetd[619]: EXIT: nrpe status=0 pid=1767 duration=2(sec)</FONT><BR><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN
class=157595409-12102007>---------------<SNIP><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN
class=157595409-12102007>---------------</SPAN></o:p></SPAN></SPAN></o:p></SPAN> </o:p></P></DIV></DIV></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=157595409-12102007>This
really does not tell me anything. I take it you have already goggled for "nrpe +
Could not read request from client, bailing out..." and found the Nagios FAQ
about this. It doset look like its your problem but I dont know as you have
provided only one piece off te information i asked for.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=157595409-12102007>So
here we go again.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>1.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007>>>"./check_nrpe -H <IP Address>. already no
firewall is running behind those servers .tried to put '-t' option also but
didn't </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007>>>work."</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>Please paste the
output off the above command when you run it against your two hosts. I take it
you are running the check_nrpe command as the user nagios?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>Here is an example
that I ran on my nagios server connecting to one off my remote NRPE
boxes</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007> usel:~ # su
- nagios</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007> <A
href="mailto:nagios@usel">nagios@usel</A>:~>
id<BR> uid=1001(nagios) gid=100(users)
groups=100(users),1001(nagcmd)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007>
/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -p 5666 -c
check_users<BR> USERS OK - 0 users
currently logged in |users=0;5;10;0</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007>2.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>>>Still I am
able to telnet 5666 with out any problem/</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>Please paste in the
output off your telnet sessions to both boxes and the syslog/messages output on
the remote hosts like I have below.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007> <A
href="mailto:nagios@usel">nagios@usel</A>:~> telnet xxx.xxx.xxx.xxx
5666<BR> Trying
xxx.xxx.xxx.xxx...<BR> Connected to
xxx.xxx.xxx.xxx.<BR> Escape character is
'^]'.<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007></SPAN></FONT><FONT
face=Arial size=2><SPAN class=157595409-12102007></SPAN></FONT><FONT face=Arial
size=2><SPAN class=157595409-12102007>3.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>>>so please
help him for this.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007> We will If you
provide us with more information</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007>4.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>>>
</SPAN></FONT><FONT face=Arial size=2><SPAN class=157595409-12102007>(iam able
to access one server and client using nrpe daemon <FONT face=Arial
size=2><SPAN class=157595409-12102007> other could
not)</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>Show us. Post your
output above as host1( working) host2(non-working)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>The problem is
probably going to be related to differences between your two remote nrpe hosts.
To understand this you need to tell us what OS you are running on the boxes and
also other relevant information. Things like the following</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>4.1 OS
Version</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007> Host1
(working</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007> Host2
(non-working)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>4.2 ./configure
syntax used to create makefile</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007> Host1 (working</DIV>
<DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007> Host2
(non-working)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=157595409-12102007>4.3
SSL - is it installed on both boxes and is the development libs also there.
something like "rpm -qa | grep ssl" on a Redhat box would show you what ssl
related stuff you have installed</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=157595409-12102007><FONT
color=#000000> Host1
(working</FONT></SPAN></FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=157595409-12102007></DIV>
<DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007> Host2
(non-working)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>If you provide the
above info it is entirely possible that whilst going through the steps to gather
the info you might actually "stumble" across the cause off your
problem.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=157595409-12102007>I look forward to
hearing back from you</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007>Regards</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=157595409-12102007>Tom</SPAN></FONT></DIV></DIV></SPAN></FONT>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=157595409-12102007></SPAN></FONT> </DIV></SPAN></FONT></DIV></BODY></HTML>