nagiosql.delete.service: Permission denied
Posted: Mon Apr 14, 2014 6:06 pm
Hi,
I have a local script on our Nagios XI server to delete decommissioned services/hosts automatically. The script calls /usr/local/nagiosxi/scripts/nagiosql_delete_service.php and /usr/local/nagiosxi/scripts/nagiosql_delete_host.php. It works well when I run it as root, however it gives me the following errors when I run it as user 'nagios':
Thanks,
Steven
I have a local script on our Nagios XI server to delete decommissioned services/hosts automatically. The script calls /usr/local/nagiosxi/scripts/nagiosql_delete_service.php and /usr/local/nagiosxi/scripts/nagiosql_delete_host.php. It works well when I run it as root, however it gives me the following errors when I run it as user 'nagios':
I need to call these nagiosql scripts as user 'nagios' for multiple reasons (e.g. security), so is there a way to allow that?CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/services.php --no-check-certificate --post-data 'chbId_299=on&selModify=delete&hidModify&modus=checkform' -O nagiosql.delete.service
nagiosql.delete.service: Permission denied
Thanks,
Steven