Permettre l’exécution forcée de checks dans Nagios

Trop souvent (Debian/Ubuntu!) je tombe sur cette erreur dans un Nagios :


Error: Could not stat() command file ‘/var/lib/nagios3/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.

La solution est pourtant simple, il suffit pourtant dans le fichier /etc/nagios/nagios.cfg de passer à 1 la valeur de la directive check_external_commands puis d’exécuter :


dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
service nagios3 restart

Vus : 1463
Publié par Morot : 34