I'm writing my first nagios plugin to check whether my APF firewall rules are on. Inside of my perl script I added this line:<br><br>  my $iptables = `/sbin/iptables -L -n | grep -c DROP`<br><br>Apparently, I don't have permissions to run this because I see my log file produces the following error:<br>
<br>   Feb 20 14:48:44 dev2 nagios: Warning: Return code of 13 for check of service 'APF Firewall' on host 'localhost' was out of bounds.<br><br>From what I understand, code 13 indicates a permissions problem, which I presume comes from trying to run the iptables command within the plugin. How can I get around the permissions problem? I would prefer not to /sbin/iptables to the nagios group. Any recommendations would be appreciated.<br>
<br>--Gil Vidals / Position Reserach<br><br>