Here is the code i use to check if iptables has some filters in it:
/sbin/iptables -nvL | /bin/grep -c "Uitgaand"
if “$cnt” = “0” ]
echo "CRITICAL: IPTABLES is not RUNNING"
elif “$cnt” = “1” ]
echo "OK: IPTABLES is RUNNING"
echo "UNKNOWN: IPTABLES is UKNOWN"
locally it runs great and gives me the correct exit state, but when i run it using nrpe it always return with an error in nagios, what am i doing wrong?