CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the ho st?
David Levine
dlevine at seasontickets.com
Fri Feb 28 01:40:42 CET 2003
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 <mailto:dlevine at seasontickets.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030227/5da78a0b/attachment.html>
More information about the Users
mailing list