Trying to Schedule Down time and getting errors
Posted: Fri Mar 06, 2020 4:50 pm
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
This was working. I added my user to the Nagios group I am not sure if this broke this or not.
I also ran all of these commands from another form I found:
It was on this nagios topic - https://support.nagios.com/forum/viewto ... =7&t=27662
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
This was working. I added my user to the Nagios group I am not sure if this broke this or not.
Code: Select all
[alan@Svr-Monitor ~]$ grep nag /etc/group
nagios:x:1001:apache,nagios
nagcmd:x:1002:apache,nagios
[alan@Svr-Monitor ~]$ Code: Select all
[alan@Svr-Monitor ~]$ cd /usr/local/nagios/var/rw/
[alan@Svr-Monitor rw]$ ll
total 0
prw-rw----. 1 nagios nagcmd 0 Mar 6 13:39 nagios.cmd
srw-rw----. 1 nagios nagcmd 0 Mar 6 13:39 nagios.qh
[alan@Svr-Monitor rw]$ 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.cmd