[Nagiosplug-help] nagios plugin permission denied
Gil Vidals
gvidals at gmail.com
Thu Feb 21 00:07:22 CET 2008
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:
my $iptables = `/sbin/iptables -L -n | grep -c DROP`
Apparently, I don't have permissions to run this because I see my log file
produces the following error:
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.
>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.
--Gil Vidals / Position Reserach
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080220/2018875e/attachment.html>
More information about the Help
mailing list