<div>Hello<br><br>There are few ways to fix this first I suggest you to read and use capture wrapper</div>
<div><a href="http://www.nagios.org/faqs/viewfaq.php?faq_id=379">http://www.nagios.org/faqs/viewfaq.php?faq_id=379</a> to catch the exact error .</div>
<div> </div>
<div>then if its really permissions problem you should simply add your command to sudo </div>
<div>example nagios localhost=/sbin/iptables -L -n and simply add sudo to your command it should do the trick</div>
<div> </div>
<div>--<br>Moshe Sharon<br><a href="http://www.centerity.com">http://www.centerity.com</a> </div>