Error: Could not open command file
Posted: Tue Oct 16, 2012 11:25 am
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?
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?