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?
Error: Could not open command file
Re: Error: Could not open command file
Fixed by using Giuseppe's PDF for core installations-
usermod -G nagcmd apache
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
Sounds good, thank you for also posting your solution.