Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Added $TABLE CHKIPTBLS=`/sbin/iptables -n -t $TABLE -L |wc -l`
Added nrpe user to sudoers Defaults!/usr/local/nagios/libexec/check_iptables.sh !requiretty nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_iptables.sh
I would not recommend adding to following to sudoers. nagios ALL= NOPASSWD: /sbin/iptables
I also imported utils.sh and used it’s exit codes but this may not be required. . /usr/local/nagios/libexec/utils.sh
exit $STATE_OK exit $STATE_CRITICAL