RESTART_PROGRAM - External Command not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Pradeeps
Posts: 38
Joined: Thu Dec 22, 2016 11:05 am

RESTART_PROGRAM - External Command not working

Post 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.
Locked