I am trying to monitor a RHEL5 machine using Nagios XI 2014.
After adding the server through wizard, I am getting the below error as status information for all services of that host and status is marked as unknown.
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
I tried the below,
1) On Nagios XI server
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H remoterhel5box
NRPE v2.15Code: Select all
# netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTENCode: Select all
# lsof -i:5666
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
xinetd 27527 root 5u IPv4 44504170 0t0 TCP *:nrpe (LISTEN)Code: Select all
# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:5667
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:5666
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
Chain OUTPUT (policy ACCEPT)
num target prot opt source destinationCode: Select all
# cat /etc/services | grep 566[6-8]
nrpe 5666/tcp
nsca 5667/tcp
ndo2db 5668/tcpCode: Select all
# /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.15Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_load
OK - load average: 0.12, 0.26, 0.31|load1=0.120;15.000;30.000;0; load5=0.260;10.000;25.000;0; load15=0.310;5.000;20.000;0;Code: Select all
# tail /var/log/messages
Apr 20 09:34:30 auspcrpbak02 xinetd[27527]: START: nrpe pid=28084 from=10.168.185.20
Apr 20 09:34:30 auspcrpbak02 nrpe[28084]: Error: Request contained command arguments!
Apr 20 09:34:30 auspcrpbak02 nrpe[28084]: Client request was invalid, bailing out...
Apr 20 09:34:30 auspcrpbak02 xinetd[27527]: EXIT: nrpe status=0 pid=28084 duration=0(sec)
Apr 20 09:34:55 auspcrpbak02 xinetd[27527]: START: nrpe pid=28092 from=10.168.185.20
Apr 20 09:34:55 auspcrpbak02 nrpe[28092]: Error: Request contained command arguments!
Apr 20 09:34:55 auspcrpbak02 nrpe[28092]: Client request was invalid, bailing out...
Apr 20 09:34:55 auspcrpbak02 xinetd[27527]: EXIT: nrpe status=0 pid=28092 duration=0(sec)
Apr 20 09:34:55 auspcrpbak02 xinetd[27527]: START: nrpe pid=28094 from=127.0.0.1
Apr 20 09:34:55 auspcrpbak02 xinetd[27527]: EXIT: nrpe status=0 pid=28094 duration=0(sec)