Permission error when uploading a plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Permission error when uploading a plugin

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Permission error when uploading a plugin

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Permission error when uploading a plugin

Post 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#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Permission error when uploading a plugin

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Permission error when uploading a plugin

Post by jcamillo »

I am trying to upload nagios-plugins-1.4.15 (2).tar.gz.
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Permission error when uploading a plugin

Post by jcamillo »

You were correct about the plug-in. I tried a different one and no error.

Thanks for you help!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Permission error when uploading a plugin

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked