I'm having trouble getting NRPE to respond to my Nagios Server. I've been getting the message: CHECK_NRPE: Socket timeout after 10 seconds.
I've added firewall rules for port 5666:
Code: Select all
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -p tcp --dport 5666 -m state --state NEW -j ACCEPT
I've made sure the 'only_from' in /etc/xinetd.d is set to my server address. I have also added an argument so that it doesn't use ssl (as I was getting "Couldn't complete SSL handshake" error).
Code: Select all
server_args = -c /usr/local/nagios/etc/nrpe.cfg -n --inetd
..
..
only_from = 127.0.0.1 10.10.0.100 <--(it's an network that is cut off from the actual internet)
I'm not sure if the fact that the switch has been disconnected from the actual internet but I wouldn't think so. It runs like any regular network, except we can't access anything outside our little internal network.
Could someone help me out with this? I really don't know what the problem is.