CHECK_NRPE: Received 0 bytes. Are we allowed t o connect to the ho st?

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Fri Feb 28 18:08:00 CET 2003


Get rid of /usr/sbin/tcpd from your inetd.conf file (unless you have tcpd
installed elsewhere).

Here's what I'm using on our Solaris boxen in inetd.conf (mind the
wordwrap):

nrpe  stream  tcp  nowait  nagios  /usr/local/nagios/bin/nrpe \
  /usr/local/nagios/bin/nrpe -i /usr/local/nagios/etc/nrpe.cfg

Don't forget to HUP inetd after you make the appropriate change.

jc

-----Original Message-----
From: David Levine [mailto:dlevine at seasontickets.com]
Sent: Friday, February 28, 2003 10:25 AM
To: Nagios Users List (E-mail)
Subject: RE: [Nagios-users] CHECK_NRPE: Received 0 bytes. Are we allowed t o
connect to the ho st?


Sorry - I should have posted this as well...
Here is a line from /var/adm/messages :

Feb 28 10:04:09 obiwan inetd[10323]: [ID 388736 daemon.error] execv
/usr/sbin/tcpd: No such file or directory

Can anyone provide some insight?

Tx

David
-----Original Message-----
From: David Levine [mailto:dlevine at seasontickets.com]
Sent: Thursday, February 27, 2003 6:41 PM
To: Nagios Users List (E-mail)
Subject: [Nagios-users] CHECK_NRPE: Received 0 bytes. Are we allowed to
connect to the ho st?


Hi all  -

I am having a bit of trouble with NRPE....

NRPE 1.8
nagios host: RH Linux 7.2
remote host: Solaris 8 x86

I am getting the error:
[nagios at vader libexec]$ ./check_nrpe -H obiwan -c check_oracle_pmon
CHECK_NRPE: Received 0 bytes.  Are we allowed to connect to the host?

I am running the NRPE daemon on the remote host as such:
[nagios at obiwan ~/bin]$./nrpe -c /opt/local/nagios/bin/nrpe.cfg --daemon

I can see that the remote host is listening on the correct port:
[nagios at obiwan ~/bin]$netstat -an | grep 5666
      *.5666               *.*                0      0 65536      0 LISTEN
192.168.100.78.5666  192.168.100.33.39932  5840      0 66608      0
TIME_WAIT
192.168.100.78.5666  192.168.100.33.39990  5840      0 66608      0
TIME_WAIT

However - I cannot see any PID associated with the NRPE daemon (output from
ps -ef)?

The command (plugin) that I am running on the remote host works fine:
[nagios at obiwan ~/libexec]$./check_oracle --db PRACTICE
PRACTICE OK - 1 PMON process(es) running

Here are (from what I can see) the relevant portions of nrpe.cfg:
allowed_hosts=127.0.0.1, 192.168.100.33
command[check_oracle_pmon]=/opt/local/nagios/libexec/check_oracle --db
PRACTICE

Configurations on my NAGIOS host:
checkcommands.cfg:

# 'check_nrpe' command definition
define command{
 command_name check_nrpe
 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
 }

services.cfg:

# Service Description -- Verify Oracle instance is running (checking for
PMON)
define service{
 use    ti-template
 host_name   obiwan
 service_description  Oracle 8i PMON
 check_command   check_nrpe!check_oracle_pmon
 }


So...
Am I missing the obvious?

TIA for sharing any advice / experience...

-D

David Levine
Systems Administrator
Ticket Innovations, Inc.
1555 Mittel Blvd. Suite J
Wood Dale, IL 60191
Voice: 630-477-8329
Fax: 630-787-9951
dlevine at seasontickets.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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