Error: Could not stat() command file '/usr/local/nagios/var/
Posted: Tue Nov 25, 2014 11:11 am
I had my server up and running but had an issue with a VM host which caused some crashes. Now am having an issue with email notifications, and commands.
I am getting this whenever trying to execute something:
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.
I have seen this could be due to permissions, among other things. Below is some info from my setup. Any help would be greatly appreciated.
[root@uhc-ng01 ~]# service nagios status
nagios (pid 1049) is running...
[root@uhc-ng01 ~]# ls -l /usr/local/nagios/var/rw
total 0
prw-rw----. 1 nagios nagcmd 0 Nov 25 10:51 nagios.cmd
srw-rw----. 1 nagios nagcmd 0 Nov 25 10:51 nagios.qh
[root@uhc-ng01 ~]# grep nag /etc/group
nagios
1000:nagios
nagcmd
1001:apache
I am getting this whenever trying to execute something:
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.
I have seen this could be due to permissions, among other things. Below is some info from my setup. Any help would be greatly appreciated.
[root@uhc-ng01 ~]# service nagios status
nagios (pid 1049) is running...
[root@uhc-ng01 ~]# ls -l /usr/local/nagios/var/rw
total 0
prw-rw----. 1 nagios nagcmd 0 Nov 25 10:51 nagios.cmd
srw-rw----. 1 nagios nagcmd 0 Nov 25 10:51 nagios.qh
[root@uhc-ng01 ~]# grep nag /etc/group
nagios
nagcmd