Plugin Permission Error.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mediapirate
Posts: 4
Joined: Mon Aug 15, 2011 10:15 am

Plugin Permission Error.

Post 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'
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Plugin Permission Error.

Post by mguthrie »

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.

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Plugin Permission Error.

Post 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:

Code: Select all

# chmod +x fix_perms-2011R1.6.sh
Run the script:

Code: Select all

# /tmp/fix_perms-2011R1.6.sh
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.
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.

Post 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.
mediapirate
Posts: 4
Joined: Mon Aug 15, 2011 10:15 am

Re: Plugin Permission Error.

Post by mediapirate »

Disregard, things cleared up post reboot. Thank you!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Plugin Permission Error.

Post by lmiltchev »

You are welcome!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked