Page 1 of 1

RESTART_PROGRAM - External Command not working

Posted: Wed May 06, 2020 11:44 am
by Pradeeps
Hello Folks,

I am running nagios 4.2.4 with "nagiosql" frontend for configuration. I noticed the "RESTART_PROGRAM" command which sends to the nagios.cmd to update the changes, stopped working all of a sudden. Initially I thought it got something to do with nagiosql. However, sending "Restart_Program" manually to nagios.cmd also didnt work.

This is the command i use
printf "[%lu] RESTART_PROGRAM;\n" `date +%s` >/usr/local/nagios/var/rw/nagios.cmd
I confirmed "nagios.cmd" is a pipe file (as it should be) owned by nagios daemon.
prw-rw---- 1 nagios nagcmd 0 May 6 16:42 /usr/local/nagios/var/rw/nagios.cmd
Any idea why it stopped working? Remember it was working fine few days back and no changes had been done recently.