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