PDA

View Full Version : Prise en compte de l'etat d'un host ou service


neoo83
1st February 2008, 11:50
Bonjour,

La prise en compte d'un host ou service ne marche plus dans la version 1.4.2.3 de centreon pour moi. Est ce normale ?

neoo83
1st February 2008, 12:11
Debut de piste :

Dans nagios j'ai essayé de prendre en compte l'etat d'un host, il me repond :

Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!

The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.

An error occurred while attempting to commit your command for processing.

Les droits sur nagios.cmd dans le repertoire RW

prw-rw---- 1 nagios nagioscmd 0 2008-02-01 10:52 nagios.cmd|

Je continue à chercher

FabUbuntu
1st February 2008, 12:57
J'ai mis tous mes fichiers nagios appartenant à nagios:nagios sauf /etc qui lui appartient à www-data:www-data et ca a marché comme ca!!!

FabUbuntu
1st February 2008, 12:58
Pense aussi à mettre 755 sur tout ton dossier nagios!!!

neoo83
1st February 2008, 13:03
Merci pour vos reponses.

J'ai fait cela et ça fonctionne maintenant.

Configuration des permissions du répertoire


chown nagios:nagiocmd /usr/local/nagios/var/rw
chmod u+rwx /usr/local/nagios/var/rw
chmod g+rw /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw

et j'ai relancé le serveur apache.

Merci a vous