I have a RHEL 6.3 server that is registered with red hat. I've installed the nagios plugins(2.0.3) and the nrpe-2.15.
When I run the following command, netstat -at | grep nrpe I get nothing.
When I run the following command, /usr/local/nagios/libexec/check_nrpe -H localhost I get:
connect to address ::1 port 5666: Connection refused
connect to address 127.0.0.1 port 5666: Connection refused
connect to host localhost port 5666: Connection refused
When i do a less /var/log/messages I get the following:
Sep 11 09:06:03 localhost xinetd[46274]: Server /usr/local/nagios/bin/nrpe is not executable [file=/etc/xinetd.d/nrpe] [line=11]
Sep 11 09:06:03 localhost xinetd[46274]: Error parsing attribute server - DISABLING SERVICE [file=/etc/xinetd.d/nrpe] [line=11]
Sep 11 09:06:03 localhost xinetd[46274]: Must specify a server in nrpe
Sep 11 09:06:03 localhost xinetd[46274]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Sep 11 09:06:03 localhost xinetd[46274]: Started working: 0 available services
Sep 11 09:07:48 localhost xinetd[46274]: Exiting...
When I run a ps -ef |grep xinetd, I get:
root 5107 1 0 09:26 ? 00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 32359 13266 0 09:54 pts/0 00:00:00 grep xinetd
I've restarted the xinetd process multiple times
When I run grep nrpe /etc/services I get:
nrpe 5666/tcp # NRPE
I added port 5666 to the iptables:
*filter
:INPUT ACCEPT [368773:68873995]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [372083:68473830]
-A INPUT -p tcp -m tcp --dport 5666 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5666 -j ACCEPT
COMMIT
# Completed on Thu Sep 11 09:21:53 2014
My /etc/xinetd.d/nrpe configuration file looks like this:
# 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 = 192.168.0.29
}
I've also tried adding in the 127.0.0.1 in the only_from field and I get the same problem.
I've setup nrpe on a few centos and SUSE servers and have never had this issue. I'm totally stumped at this point. Any help would be much appreciated