Page 1 of 1

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

Posted: Sat Aug 10, 2013 9:41 am
by praveen.ks
Hi,

I configure Nagios Core 3.2 and it's working fine, but when am trying to comment on host

@@@@@@@@@......IT DISPLAYS ERROR......@@@@@@@@@@


Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!

The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.

An error occurred while attempting to commit your command for processing.

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

Posted: Mon Aug 12, 2013 9:48 am
by slansing
Try the following, from the command line run:

service nagios stop

Code: Select all

killall -9 nagios

service nagios start

ll -la /usr/local/nagios/var/rw/
Show us the output of these commands. Also, try to comment on the host again.

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

Posted: Mon Aug 12, 2013 9:48 am
by abrist
This may be permission related, or nagios service related. What is the output of:

Code: Select all

ls -la /usr/local/nagios/var/rw/nagios.cmd
grep nag /etc/group
service nagios status