Error: Could not open command file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

Error: Could not open command file

Post 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?
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

Re: Error: Could not open command file

Post by GaWd »

Fixed by using Giuseppe's PDF for core installations-

usermod -G nagcmd apache
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Error: Could not open command file

Post by slansing »

Sounds good, thank you for also posting your solution.
Locked