Build precise queries to find exactly what you need
Press ESC to close
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
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!