Nrpe and iptables (firewall)


#1

i installed open_ssh in my remote host
and am now trying to access through nrpe
i tried check_disk at the command line in my nagios server
but it just returns connection refused or timed out

cat /etc/sysconfig/iptables
gives

Generated by iptables-save v1.2.11 on Sat Feb 17 11:34:59 2007

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:oUTPUT ACCEPT [352:59127]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p ipv6-crypt -j ACCEPT
-A RH-Firewall-1-INPUT -p ipv6-auth -j ACCEPT
-A RH-Firewall-1-INPUT -d 224.0.0.251 -p udp -m udp --dport 5353 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 5666 -j ACCEPT
COMMIT

Completed on Sat Feb 17 11:34:59 2007

when i do
./check_nrpe -H myremotehost -c check_disk 80 90
it returns
connection refused or timed out
but when i do
service iptables stop
./check_nrpe -H myremotehost -c check_disk 80 90
it gives the disk size

is there anything else i need to do?

thanks