NRPE says "Host not allowed to talk to us"
Posted: Thu Dec 12, 2013 9:23 pm
I am having NRPE communication issues on my ubuntu VMs (debian machines are fine, same subnet and nrpe.conf file). The syslog on the nrpe machine is saying the IP is not allowed, but it should be allowed from the .conf file.
arrow@nagios:~$ /usr/lib/nagios/plugins/check_nrpe -H 10.20.10.158 -c check_all_disks
CHECK_NRPE: Error - Could not complete SSL handshake.
On the *client* machine running NRPE daemon (syslog)
Dec 12 18:13:10 monitor-01 nrpe[9095]: Connection from 10.20.11.38 port 9617
Dec 12 18:13:10 monitor-01 nrpe[9095]: Host 10.20.11.38 is not allowed to talk to us!
Dec 12 18:13:10 monitor-01 nrpe[9095]: Connection from 10.20.11.38 closed.
But that IP is indeed in the allowed_hosts file (the /24 of that subnet), and I have killed / restarted NRPE ( and even rebooted the server!) Also, this *is* the right path to the conf file, as verified by ps aux | grep nrpe .
# cat /etc/nagios/nrpe.cfg | grep allowed_hosts
allowed_hosts=10.20.11.0/24,127.0.0.1
The only other strange this is some error messages related to open-vm-tools , which I hope are not related but could be, this message is repeating every 30 seconds:
Dec 12 18:08:42 monitor-01 vmsvc[1153]: [ warning] [guestinfo] Failed to get nic info.
arrow@nagios:~$ /usr/lib/nagios/plugins/check_nrpe -H 10.20.10.158 -c check_all_disks
CHECK_NRPE: Error - Could not complete SSL handshake.
On the *client* machine running NRPE daemon (syslog)
Dec 12 18:13:10 monitor-01 nrpe[9095]: Connection from 10.20.11.38 port 9617
Dec 12 18:13:10 monitor-01 nrpe[9095]: Host 10.20.11.38 is not allowed to talk to us!
Dec 12 18:13:10 monitor-01 nrpe[9095]: Connection from 10.20.11.38 closed.
But that IP is indeed in the allowed_hosts file (the /24 of that subnet), and I have killed / restarted NRPE ( and even rebooted the server!) Also, this *is* the right path to the conf file, as verified by ps aux | grep nrpe .
# cat /etc/nagios/nrpe.cfg | grep allowed_hosts
allowed_hosts=10.20.11.0/24,127.0.0.1
The only other strange this is some error messages related to open-vm-tools , which I hope are not related but could be, this message is repeating every 30 seconds:
Dec 12 18:08:42 monitor-01 vmsvc[1153]: [ warning] [guestinfo] Failed to get nic info.