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

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
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

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

Post 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?
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

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

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked