Page 1 of 1

Permission error when uploading a plugin

Posted: Thu Jan 12, 2012 4:25 pm
by jcamillo
I am running Nagios XI.
Linux version 2.6.32-220.2.1.el6.i686 ([email protected]) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Thu Dec 22 18:50:52 GMT 2011
-bash-4.1#



I get the following error message when I upload a plugin:
Plugin could not be installed - directory permissions may be incorrect.

I tried to run the script NagiosXI-FixPerms.sh with no luck. I restarted the services.

Here are the permissions in the nagios XI directory
total 1096
-rwxr-xr-x 1 root root 1086617 Dec 14 11:01 NagiosXI-FixPerms.sh
drwxr-xr-x 2 nagios nagios 4096 Jan 4 10:27 cron
drwxr-xr-x 3 nagios nagios 4096 Jan 4 10:27 etc
drwxr-xr-x 18 nagios nagios 4096 Jan 4 10:27 html
drwxr-xr-x 3 nagios nagios 4096 Jan 4 10:27 nom
drwxr-xr-x 2 nagios nagios 4096 Jan 4 11:05 scripts
drwsrwsr-x 2 apache nagios 4096 Jan 11 15:16 tmp
drwxr-xr-x 2 nagios nagios 4096 Jan 4 10:27 tools
drwxr-xr-x 4 nagios nagios 4096 Jan 12 16:00 var
-bash-4.1# pwd

what am I missing?

thanks
joe :D

Re: Permission error when uploading a plugin

Posted: Thu Jan 12, 2012 5:16 pm
by scottwilkerson
The plugin is installed into ls -l /usr/local/nagios/libexec

Run

Code: Select all

ls -l /usr/local/nagios
and you want libexec to look something like

Code: Select all

drwxrwxr-x  2 nagios nagios 4096 Jan 12 15:45 libexec

Re: Permission error when uploading a plugin

Posted: Fri Jan 13, 2012 9:24 am
by jcamillo
The permission on that look correct:


bin etc libexec sbin share var
-bash-4.1# ls -l
total 24
drwxrwxr-x 2 nagios nagios 4096 Jan 4 10:27 bin
drwsrwsr-x 7 apache nagios 4096 Jan 11 14:23 etc
drwxrwxr-x 2 nagios nagios 4096 Jan 4 10:27 libexec
drwxrwxr-x 2 nagios nagios 4096 Jan 4 10:25 sbin
drwxrwxr-x 12 nagios nagios 4096 Jan 4 10:26 share
drwxrwxr-x 6 nagios nagios 4096 Jan 13 09:22 var
-bash-4.1# pwd
/usr/local/nagios
-bash-4.1#

Re: Permission error when uploading a plugin

Posted: Fri Jan 13, 2012 10:45 am
by scottwilkerson
This makes me wonder if the plugin you are trying to upload already exists and is not writable. What plugin are you uploading? Does it already exist in

Code: Select all

# ls -l /usr/local/nagios/libexec
What are the permissions on that file?

Re: Permission error when uploading a plugin

Posted: Fri Jan 13, 2012 12:48 pm
by jcamillo
I am trying to upload nagios-plugins-1.4.15 (2).tar.gz.

Re: Permission error when uploading a plugin

Posted: Fri Jan 13, 2012 12:51 pm
by jcamillo
You were correct about the plug-in. I tried a different one and no error.

Thanks for you help!

Re: Permission error when uploading a plugin

Posted: Fri Jan 13, 2012 12:52 pm
by scottwilkerson
jcamillo wrote:You were correct about the plug-in. I tried a different one and no error.

Thanks for you help!
no problem