Importation de config de Nagios à Centreon

Fermé
managios Messages postés 7 Date d'inscription lundi 14 avril 2008 Statut Membre Dernière intervention 21 avril 2008 - 16 avril 2008 à 16:28
 nour4u - 11 avril 2010 à 13:49
Bonjour,

je suis actuellement en stage pour valider mon DUT Réseaux et Télécommunication

Mon sujet de stage est de mettre en palce uen solution de Monitoring pour une entreprise

j'ai installer Nagios 3.0.1 (éveidemment) et commencer a le configurer "a la main" les fichiers de config pour bien comprendre le fonctionnement. Cela marchait nickel.

J'ai ensuite décider d'installer Centreon 1.4.2.4 (Oreon pour les plus vieux ;-) ) pour avoir une interface graphique et ainsi une facilité pour configurer Nagios.

Seulement voila lorsque j'essaie d'importer ma configuration nagios, j'apercois tout ceci sur le checking de ma config :

Nagios 3.0.1
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-01-2008
License: GPL

Reading configuration data...

Warning: aggregate_status_updates directive ignored. All status file updates are now aggregated.
Warning: downtime_file variable ignored. Downtime entries are now stored in the status and retention files.
Warning: comment_file variable ignored. Comments are now stored in the status and retention files.
Running pre-flight check on configuration data...

Checking services...
Checked 0 services.
Checking hosts...
Warning: Host 'XX-GEO' has no services associated with it!
Warning: Host 'XX-IMP' has no services associated with it!
Warning: Host 'XX-NAGIOS' has no services associated with it!
Warning: Host 'XX-PARC' has no services associated with it!
Warning: Host 'XX-SG' has no services associated with it!
Warning: Host 'XX-SISTER' has no services associated with it!
Warning: Host 'XX-SUH' has no services associated with it!
Warning: Host 'XX-UTCM' has no services associated with it!
Warning: Host 'XX-UTSM-DATA' has no services associated with it!
Warning: Host 'XX-UTSM-IMP' has no services associated with it!
Warning: Host 'XX-VENUS' has no services associated with it!
Checked 11 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Error: Contact 'nagiosadmin' has no service notification commands defined!
Error: Contact 'nagiosadmin' has no host notification commands defined!
Warning: Contact 'nagiosadmin' has no service notification time period defined!
Warning: Contact 'nagiosadmin' has no host notification time period defined!
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 54 commands.
Checking time periods...
Checked 7 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 13
Total Errors: 2

***> One or more problems was encountered while running the pre-flight check...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.


Ce que je comprend pas c'est qu'il me dit que mes serveurs ne sons associés à aucun service pourtant dans ma config nagios ca l'est mais par l'intermédiaire de groupe. Le probléme vient il de là ?

Je ne comprend pas non plus le probléme avec nagiosadmin ??

Si quelqu'un a une solution je suis preneur

Bonne journée à tous

Managios

5 réponses

hello Mannagios,

ben il suffit de lire ton débug il te dis :

Error: Contact 'nagiosadmin' has no service notification commands defined!
Error: Contact 'nagiosadmin' has no host notification commands defined!


donc il suffit de supprimer ou d'ajouter le contact nagiosadmin.... dans ton fichier de conf : "contacts.cfg
1
j'ai le même probleme

Error: Contact 'lotfi mazhoud' has no service notification commands defined!
Error: Contact 'lotfi mazhoud' has no host notification commands defined!
Warning: Contact 'lotfi mazhoud' has no service notification time period defined!
Warning: Contact 'lotfi mazhoud' has no host notification time period defined!

pouvez vous m'aidé svp ?
0
hello eliza,
oui c'est possible d'envoyer des mails ou même des sms ... pour ma part j'ai configuré les notifications par mails et ça marche nikel.

j'ai installé Nagios 3.0.3 et ça marche nikel, y'a pas mal de template déjà tout fait, donc il te suffit de rajouter quelques lignes dans les fichiers de conf
1
managios Messages postés 7 Date d'inscription lundi 14 avril 2008 Statut Membre Dernière intervention 21 avril 2008 1
16 avril 2008 à 16:33
J'ai oublié de préciser que j'avais importer ma config nagios à partir d'une archive fait dans le dossier /usr/local/nagios/etc/

Je peux également vous donenr des fichiers de config

Bonne journée
0
Centreon 1.4.x ne fonctionne pas avec nagios 3.

Il faudra attendre la version 2 de centreon qui elle sera compatible avec nagios 3.
0
eliza_b Messages postés 340 Date d'inscription vendredi 16 mai 2008 Statut Membre Dernière intervention 20 août 2014 10
16 mai 2008 à 10:32
Bonjour,
je suis actuellement en stage pour valider mon DUT Réseaux et Télécommunication.
Mon sujet de stage est de mettre en palce uen solution de Monitoring pour une entreprise.
j'ai installer Nagios 3.0.1 (éveidemment) et commencer a le configurer "a la main" les fichiers de config pour bien
comprendre le fonctionnement. Cela marchait nickel.
J'ai ensuit installer Centreon 1.4.2.4 (Oreon pour les plus vieux ;-) ) pour avoir une interface graphique et
ainsi une facilité pour configurer Nagios.
Bon là, je suis arrivé a installé nagios et centréon§.

Je vous expose mon pb:
j'ai un service qui marche sur une machine parexemple apache, et ce que je voudrais savoir c'est est ce possible d'avoir si le service tombe un remonter d'information ? et si oui comment faire.

Merci d'avance.
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Bonjour, une partie de mon PFE rassemble a votre stage s'il vous plait pouvez vous m'envoyer le rapport de votre stage ca pourrait m'aider enormement.
Merci beaucoup d'avance
lgrira@yahoo.fr
-5