Page 1 of 1

Permission error on /usr/local/nagios/var/rw/nagios.cmd

Posted: Fri Sep 15, 2017 11:21 pm
by t3dus
I accidently chmoded my nagios folder to 755 the other day which caused the error below when I go to acknowledge a problem.

I tried the steps here to fix it but it didn't fix anything...

Code: Select all

Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!
The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.
An error occurred while attempting to commit your command for processing.

Re: Permission error on /usr/local/nagios/var/rw/nagios.cmd

Posted: Sun Sep 17, 2017 2:43 pm
by t3dus
tried to chmod the folder/file to 0655 but no dice either.

Re: Permission error on /usr/local/nagios/var/rw/nagios.cmd

Posted: Mon Sep 18, 2017 8:29 am
by mcapra
For the sake of argument, can you share:

Code: Select all

ls -al /usr/local/nagios/var/rw/
You might try setting the sticky bit for the command group. I'd also make sure it's still recognized by the system as a named pipe (p ahead of the perms).

Re: Permission error on /usr/local/nagios/var/rw/nagios.cmd

Posted: Mon Sep 18, 2017 8:33 am
by t3dus
Well I ended up fixing it but not sure it was the easiest route.

What I did was backup my config files, fully removed nagios from the server and reinstalled it. Working now.

Re: Permission error on /usr/local/nagios/var/rw/nagios.cmd

Posted: Mon Sep 18, 2017 9:50 am
by tmcdonald
Sometimes that is faster/easier than tracking down permissions, especially in cases where there have been a lot of troubleshooting steps done.

Glad it's working now though. Are we okay to close this thread?

Re: Permission error on /usr/local/nagios/var/rw/nagios.cmd

Posted: Tue Sep 19, 2017 8:16 am
by t3dus
Yes close it.