Page 1 of 1

Error: Could not stat() command file '/usr/local/nagios/var/

Posted: Thu Sep 03, 2015 10:34 am
by rbuckle
I have a new install of Nagios Core 4.1.1 on CentOS 6.7

Any time i try to tell nagios to do something like re-check a device now or stop monitoring i get this:

Image

i have confirmed that Nagios is indeed running and have checked the permissions on the file and folder:

drwxrwsr-x. 2 nagios nagcmd 4096 Sep 2 16:48 rw

and:
[root@RBCentos rw]# ll
total 0
prw-rw----. 1 nagios nagcmd 0 Sep 2 16:48 nagios.cmd
srw-rw----. 1 nagios nagcmd 0 Sep 2 16:48 nagios.qh


but i still get the same error, any thoughts?

Re: Error: Could not stat() command file '/usr/local/nagios/

Posted: Thu Sep 03, 2015 11:53 am
by jolson
My first thought is that SELinux is messing with things. Any chance it's running?

Code: Select all

sestatus
If you log in as the nagios user, are you capable of opening the file in question?

Code: Select all

su - nagios
cat /usr/local/nagios/var/rw/nagios.cmd
Just to make certain it's not a simple disk space problem, let's check on your disk space:

Code: Select all

df -h
df -i