PROJET AUTOBLOG


Planet-Libre

source: Planet-Libre

⇐ retour index

Morot : Permettre l’exécution forcée de check dans Nagios

jeudi 31 octobre 2013 à 12:03

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

Gravatar de Morot
Original post of Morot.Votez pour ce billet sur Planet Libre.