I have a series of checks on the local machine that use nrpe which began failing with "Connection reset by peer" after the update.
Verified this by commandline:
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H 1.2.3.4
CHECK_NRPE: Error - Could not connect to 1.2.3.4: Connection reset by peer
#Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H MYHOSTNAME
CHECK_NRPE: Error - Could not connect to 1.2.3.4: Connection reset by peer
# /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v3.2.1
#iptables shows the port is allowing traffic:
Code: Select all
# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
...
9 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 destination
# Code: Select all
# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
# /usr/local/nagios/libexec/check_nrpe -H 1.2.3.4
CHECK_NRPE: Error - Could not connect to 1.2.3.4: Connection reset by peer
#In nrpe.cfg, I have the following for allowed hosts:
Code: Select all
allowed_hosts=127.0.0.1,::1,1.2.3.4/22