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
praveen.ks
Posts: 41
Joined: Wed May 29, 2013 5:35 pm

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

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked