Problem--->CHECK_NRPE: Received 0 bytes

Lionel Verscheure Lionel.Verscheure at loria.fr
Mon May 26 10:08:29 CEST 2003


Hi !

Are you sure you have compiled all the binaries on your "client" ?
( that binaries are : "nrpe", "check_user", .... )

best regards.

-- 
Lionel Verscheure



arsin_spam at bellsouth.net wrote:

>I am having issues with nrpe not returning any results. I have configured it without ssl and defaulted the rest. 
>
>I am able to telnet to port 5666 to the host running the nrpe damon. Below are the configurations and a few trouble shooting results i have performed.
>
>Can anyone give me some insight into this. I have scoured the lists and am unable to find anything to assist me in generating any results from either a local or remote nrpe execution. 
>
>I have debugging enabled and show nothing in the messages and am able to exe the plugins on the nrpe host. i.e. check_user 
>
>Thanks 
>Dave
>
>
>
>
>
>
>
>./check_nrpe -H 10.56.42.20 -p 5666 -c check_users
>CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for error messages.
>
>CONFIGURATIONS
>#=======================================
>
>
>
>INETD
>#============
>nrpe    stream  tcp     nowait  nagios  /usr/sbin/nrpe -c /etc/nrpe.cfg --inetd
>
>SERVICES
>#============
>nrpe            5666/tcp   # NRPE
>
>NRPE
>#============
>/usr/sbin/nrpe
>-rwxr-xr-x   1 nagios  nagios    64746 May 25 06:48 nrpe
>
>NRPE.CFG
>#============
>/etc/nrpe.cfg
>-rw-r--r--   1 nagios  nagios     5062 May 25 07:36 nrpe.cfg
>
>server_port=5666
>server_address=10.56.42.20
>allowed_hosts=127.0.0.1, 10.56.42.17
>nrpe_user=nagios
>nrpe_group=nagios
>dont_blame_nrpe=0
>debug=1
>command_timeout=60
>command[check_users]=/usr/local/libexec/nagios/check_users -w 5 -c 10
>command[check_load]=/usr/local/libexec/nagios/check_load -w 15,10,5 -c 30,25,20
>command[check_disk1]=/usr/local/libexec/nagios/check_disk -w 20 -c 10 -p /dev/hda1
>command[check_disk2]=/usr/local/libexec/nagios/check_disk -w 20 -c 10 -p /dev/hdb1
>command[check_zombie_procs]=/usr/local/libexec/nagios/check_procs -w 5 -c 10 -s Z
>command[check_total_procs]=/usr/local/libexec/nagios/check_procs -w 150 -c 200 
>
>
>==============================================================================
>==============================================================================
>
>Troubleshooting results
>========================================
>./check_nrpe -H 10.56.42.20 -p 5666 -c check_users
>CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for error messages.
>
>
>NMAP (from remote host to host running nrpe)
>#===========================================
>
>Port       State       Service
>5666/tcp   open        unknown
>
>NETSTAT
>============================================
>tcp4       0      0  10.56.42.20.5666       10.56.42.17.4825       TIME_WAIT
>
>
>TCPDUMP
>#===========================================
>tcpdump: listening on fxp0
>07:55:57.258284 10.56.42.17.4160 > xxxx.com.nrpe: S 2909265437:2909265437(0) win 5840 <mss 1460,sackOK,timestamp 1294521708 0,nop,wscale 0> (DF)
>07:55:57.258367 xxxx.com.nrpe > 10.56.42.17.4160: S 3388345141:3388345141(0) ack 2909265438 win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 174928 1294521708>
>07:55:57.258564 10.56.42.17.4160 > xxxx.com.nrpe: . ack 1 win 5840 <nop,nop,timestamp 1294521708 174928> (DF)
>07:55:57.266568 10.56.42.17.4160 > xxxx.com.nrpe: P 1:1037(1036) ack 1 win 5840 <nop,nop,timestamp 1294521712 174928> (DF)
>07:55:57.267138 xxxx.com.nrpe > 10.56.42.17.4160: P 1:819(818) ack 1037 win 32786 <nop,nop,timestamp 174929 1294521712> (DF)
>07:55:57.267200 xxxx.com.nrpe > 10.56.42.17.4160: F 819:819(0) ack 1037 win 33304 <nop,nop,timestamp 174929 1294521712> (DF)
>07:55:57.267645 10.56.42.17.4160 > xxxx.com.nrpe: . ack 819 win 7362 <nop,nop,timestamp 1294521713 174929> (DF)
>07:55:57.267711 10.56.42.17.4160 > xxxx.com.nrpe: F 1037:1037(0) ack 820 win 7362 <nop,nop,timestamp 1294521713 174929> (DF)
>07:55:57.267756 xxxx.com.nrpe > 10.56.42.17.4160: . ack 1038 win 33304 <nop,nop,timestamp 174929 1294521713> (DF)
>
>
>Telnet to nrpe server (same result from remote)
>#============================================
>Trying 127.0.0.1...
>Connected to localhost
>Escape character is '^]'.
>
>NRPE - Nagios Remote Plugin Executor
>Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org)
>Version: 2.0b3
>Last Modified: 04-17-2003
>License: GPL
>
>Usage: nrpe -c <config_file> <mode>
>
>Options:
> <config_file> = Name of config file to use
> <mode>        = One of the following two operating modes:
>   -i          =    Run as a service under inetd or xinetd
>   -d          =    Run as a standalone daemon
>
>Notes:
>This program is designed to process requests from the check_nrpe
>plugin on the host(s) running Nagios.  It can run as a service
>under inetd or xinetd (read the docs for info on this), or as a
>standalone daemon. Once a request is received from an authorized
>host, NRPE will execute the command/plugin (as defined in the
>config file) and return the plugin output and return code to the
>check_nrpe plugin.
>
>Connection closed by foreign host.
>
>  
>



-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
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