i am having trouble when asking nagios to reschedule a check eg ping, when i try i get the error message below.
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.
Return from whence you came
I have tried all of the commands similar to this and not had any luck. (rebooted both Apache and Nagios afterwards)
Code: Select all
usermod -G nagcmd nagios
usermod -G nagcmd apache
chown nagios:nagcmd /usr/local/nagios/var/rw
chown nagios:nagcmd /usr/local/nagios/var/rw/nagios.cmdThis seems to be a really common issue however i dont seem to be having much luck.
grep nag /etc/group
nagios1001:
nagcmd1002:apache,nagios
I am running the latest version of nagios (only installed last week, on CentOS 7. any help or pointers will be much appreciated!
cheers