Help on CHECK_NRPE: Received 0 bytes from daem on.

Ben Conrad BConrad at passkey.com
Mon Jun 27 17:20:54 CEST 2005


If you look in the code of the NRPE client you will see that the following
meta-chars are not allowed ( | ` & > < ' " \ [ ] { } ) .  I had to hack a
nrpe_nt client .vbs script so that when I pass in brO_ and _brC  (bracket
open/close) the script on the client end translates that to [ ].  This
bypasses the security checks that the NRPE client performs, I'm ok with that
in my implementation.

' Hack to fix metachars that are not allowed as inputs to NRPE client
' These metachars are not allowed as inputs:  | ` & > < ' " \ [ ] { }

If Instr(1,ctrA,"brO_") Then
	ctrA = Replace(ctrA, "brO_", "[")
End If


If you set debug=1 you will see the nrpe log in the dir where the nrpe
binary is (on Windows), and maybe in /var/log or /usr/local/nagios/var....
on *nix?

Ben


-----Original Message-----
From: Lori Adams [mailto:ladams at cloudmark.com]
Sent: Friday, June 24, 2005 3:49 PM
To: Marc Powell; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Help on CHECK_NRPE: Received 0 bytes from
daemon.


I just started getting this same error.  For me it has to do with what
the argument is that I'm passing to nrpe.

I'm attempting to pass a string with '[' or ']' and I get this error:
CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs
for error messages.

I haven't figured out where the log is yet to check for error messages.


If the string I pass does not have those brackets, it works.  I have
tried escaping the brackets to no avail.

Thoughts?

-Lori


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Friday, June 24, 2005 11:13 AM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Help on CHECK_NRPE: Received 0 bytes from
daemon.



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Kindy Sylla
> Sent: Friday, June 24, 2005 12:42 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Help on CHECK_NRPE: Received 0 bytes from
daemon.
> 
> Hello,
> I am trying to monitor remote host using nrpe and i am
> having the following : CHECK_NRPE: Received 0 bytes
> from daemon.
> 
> On the remote host, nrpe is listening on port 5666.
> netstat -pta return
> ...
> tcp        0      0 *:nrpe                  *:*
>              LISTEN      3088/nrpe
> tcp        0      0 monedia:42670           *:*
>              LISTEN      3414/xinetd
> 
> The nrpe is running as standalone daemon. No way to
> run it under xinetd. I tried everything i know,
> followed all the steps.
> I am using nrpe-2.0b5 and nagios1-2 on mandrake linux
> 10.1.
> I hope someone can help!!!!

Is your nagios host listed as an allowed_hosts in nrpe.cfg? Can you
manually telnet from your nagios host to your nrpe host on port 5666?
Have you tried enabling debug in nrpe.cfg? If the first two are correct,
the last should direct you to what you need to fix.

--
Marc


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
_______________________________________________
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


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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