I am getting some nagios client nrpe error
- DISK CRITICAL - 40% is not accessible: No such file or directory
- NRPE: Command 'check_cpu_stats' not defined
1. We have nrpe running under xinetd (not as standalone)
/etc/xinetd.d/nrpe
Code: Select all
# 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 = xxx.xxx.xxx.xxx
}
/etc/nagios/nrpe.cfg
3. And in the syslog i see,
bind failed (Address already in use
Service nrpe failed to start and is deactivated
4. I have checked the port 5666 is listening and xinetd is reserving that portAug 24 08:28:16 mlitoriib2 xinetd[27391]: Exiting...
xinetd[27424]: bind failed (Address already in use (errno = 98)). service = nrpe
xinetd[27424]: Service nrpe failed to start and is deactivated.
xinetd[27424]: bind failed (Address already in use (errno = 98)). service = nrpe
xinetd[27424]: Service nrpe failed to start and is deactivated.
xinetd[27424]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
xinetd[27424]: Started working: 2 available services
5. I also could telnet to that nagios client on port 5666 and its connecting.tcp 0 0 :::5666 :::* LISTEN 27424/xinetd
Could you please help me find where is the config error.
Thanks in advance...!