Code: Select all
/usr/local/nagios/libexec/check_nrpe -H localhost -n
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H localhost -n
Code: Select all
# cat /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 10.1.1.120
}
Code: Select all
log_facility=daemon
pid_file=/var/run/nrpe.pid
server_port=5666
nrpe_user=nagios
nrpe_group=nagios
allowed_hosts=127.0.0.1
dont_blame_nrpe=1
debug=1
command_timeout=60
connection_timeout=300
include_dir=/usr/local/nagios/etc/nrpe
Code: Select all
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a "$ARG2$"
}
Code: Select all
define service{
use nrpe-service
service_description Root Partition
hostgroups private
servicegroups System,NRPE
check_command check_nrpe!check_disk!-w 20% -c 10% -p /
}
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 10.1.1.109
NRPE v2.14
Very good point, unless these are exactly, and I do mean exactly, the same system. Another thing to check if we haven't already, your openssl versions should be relatively close, having a 0.98 and a 1.0.1+ version between your two systems could be causing similar issues as openssl had a ton of breaking changes between versions.Do not copy from one machine to another
Isn't that saying the ipv6 loopback address that isn't being allowed to connect? That was not in the only_from allowance was it, only ipv4 127.0.0.1 and 192.168.0.29? (ipv6 support was added to nrpe in 2.15 if you do want the ::1 address to work)Sep 29 09:40:09 localhost nrpe[3414]: Host ::1 is not allowed to talk to us!
localhost is likely translating to the ipv6 version, ::1, not 127.0.0.1 on your system./usr/local/nagios/libexec/check_nrpe -n -H localhost
Code: Select all
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6Code: Select all
find /usr/local/nagios -name \*nrpe\* -exec rm -Rf {} \;