When you tried to stop Nagios to monitor some services from web interfaces – you see the message below:
Sorry, but Nagios is currently not checking for external commands, so your command will not be committed!
This is because we haven’t enable this feature in our configuration, it’s easy to fix.
Open your nagios config file , /etc/nagios3/nagios.cfg
Look for this line:
check_external_commands=0
change it to
check_external_commands=1
and reload nagios
/etc/init.d/nagios3 restart
You might receive this error: Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!. The fix is
# /etc/init.d/nagios3 stop Stopping nagios3 monitoring daemon: nagios3Waiting for nagios3 daemon to die... . # dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw # dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3 # /etc/init.d/nagios3 start Starting nagios3 monitoring daemon: nagios3.