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'
Plugin Permission Error.
Re: Plugin Permission Error.
Try:
Code: Select all
chmod 775 /usr/local/nagios/libexec-
mediapirate
- Posts: 4
- Joined: Mon Aug 15, 2011 10:15 am
Re: Plugin Permission Error.
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.
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.
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.
Copy it to the "/tmp" directory on your Nagios server. Make it executable by running:
Code: Select all
# chmod +x fix_perms-2011R1.6.shCode: Select all
# /tmp/fix_perms-2011R1.6.shYou may have to restart your Nagios server after you are done with running the script.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
mediapirate
- Posts: 4
- Joined: Mon Aug 15, 2011 10:15 am
Re: Plugin Permission Error.
This fixed most of the issues however Database Maintenance is still showing red. I'm able to make modifications again and apply the configuration.
-
mediapirate
- Posts: 4
- Joined: Mon Aug 15, 2011 10:15 am
Re: Plugin Permission Error.
Disregard, things cleared up post reboot. Thank you!
Re: Plugin Permission Error.
You are welcome!
Be sure to check out our Knowledgebase for helpful articles and solutions!