Page 1 of 1
Plugin Permission Error.
Posted: Mon Aug 15, 2011 10:26 am
by mediapirate
We're using the Vmware image provided on Nagio's site.
Nagios XI 2011R1.6
When we try to add a new plugin under "Manage Plugins" I receive the error "Plugin could not be installed - directory permissions may be incorrect" I'm seeing the bellow error in the Apache error.log
move_uploaded_file(/usr/local/magios/libexec/check_snmp_enviroment.pl) failed to open stream
Permission denied in /usr/local/magiosxi/html/admin/monitoringplugs.php on line 189, referer:
http://IP/nagiosxi/admin/monitoringplugs.php?&=
Unable to move '/tmp/php6glBmw' to '/usr/local/nagios/libexcec/check_snmp_environment.pl'
Re: Plugin Permission Error.
Posted: Mon Aug 15, 2011 10:49 am
by mguthrie
Try:
Code: Select all
chmod 775 /usr/local/nagios/libexec
Re: Plugin Permission Error.
Posted: Mon Aug 15, 2011 1:29 pm
by mediapirate
Thank you, I ran the fix_permissions script which I believed solved the issue. I'm able to upload a plug-in now however I'm unable to update the system and I have new errors.
I have under Administration (Problems Needing Attention) Fix permissions problem;
/usr/local/nagiosxi/scripts/reset_config_perms (OWNER=apache, PERMS=-rwxr-xr-x)
/usr/local/nagiosxi/scripts/reset_config_perms.sh (OWNER=apache, PERMS=-rwxr-xr-x)
I resolved the permission problems following the instructions.
The XI System Component Status (Monitoring -> Database Backend) are green however everything bellow that (Database Maintenance -> System Statistics) is now red. If I try to run an update (save config) or add a new host the applying configuration bar just grows and grows and never moves to completed.
Re: Plugin Permission Error.
Posted: Mon Aug 15, 2011 2:54 pm
by lmiltchev
Download the attached "fix_perms-2011R1.6.sh" file.
Copy it to the "/tmp" directory on your Nagios server. Make it executable by running:
Run the script:
Please, let us know if this fixed your problem.
You may have to restart your Nagios server after you are done with running the script.
Re: Plugin Permission Error.
Posted: Tue Aug 16, 2011 6:20 am
by mediapirate
This fixed most of the issues however Database Maintenance is still showing red. I'm able to make modifications again and apply the configuration.
Re: Plugin Permission Error.
Posted: Tue Aug 16, 2011 6:24 am
by mediapirate
Disregard, things cleared up post reboot. Thank you!
Re: Plugin Permission Error.
Posted: Tue Aug 16, 2011 11:41 am
by lmiltchev
You are welcome!