Page 1 of 1

Error: Could not open command file

Posted: Tue Oct 16, 2012 11:25 am
by GaWd
I've installed Nagios several times, and this has always worked for me. I installed a fresh install on a new CentOS 5.x computer, and I have been unable to get the permissions to allow proper updating through the web interface. I've checked the /usr/local/nagios/rw permissions many times and have been unable to get any movement.

Not-working installation:

[root@localhost etc]# ls -lh /usr/local/nagios/var/

drwxrwsr-x 2 nagios nagcmd 4.0K Oct 16 09:13 rw

cmd file:

prw-rw---- 1 nagios nagcmd 0 Oct 16 09:13 nagios.cmd


Working installation:
[root@mvnagios ~]# ls -lh /usr/local/nagios/var/

drwxrwsr-x 2 nagios nagcmd 4.0K Oct 10 06:41 rw

Here's the cmd file:

prw-rw---- 1 nagios nagcmd 0 Oct 16 09:15 nagios.cmd


Any ideas?

Re: Error: Could not open command file

Posted: Tue Oct 16, 2012 12:01 pm
by GaWd
Fixed by using Giuseppe's PDF for core installations-

usermod -G nagcmd apache

Re: Error: Could not open command file

Posted: Tue Oct 16, 2012 1:40 pm
by slansing
Sounds good, thank you for also posting your solution.