Jump to content

[résolu] debian nagios


Recommended Posts

bonjour,

je me présente, je suis étudiant en 1ere année de BTS informatique de gestion

dans le cadre de mon stage de 1ere année, je dois installer une solution nagios (monitoring)

j'ai un petit souci, j'ai tout installé (nagios+centreon), configuré mes fichiers .cfg

lors de la vérification de mes fichiers de configuration, nagios ne me signale aucune erreur, cependant, il ne parvient pas a se lancer

debian:/usr/local/centreon/filesGeneration/nagiosCFG# /usr/local/nagios/bin/nagios -v /usr/local/centreon/filesGeneration/nagiosCFG/nagios.cfg

Nagios 3.0.2
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-19-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 1 services.
Checking hosts...
	Checked 1 hosts.
Checking host groups...
	Checked 0 host groups.
Checking service groups...
	Checked 0 service groups.
Checking contacts...
	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 44 commands.
Checking time periods...
	Checked 5 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: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check

voici le message lors du redémarrage du service:

debian:/# /etc/init.d/nagios restart
Running configuration check... CONFIG ERROR!  Restart aborted.  Check your Nagios configuration.

si une âme charitable pouvait me filer un coup de main cela me serait utile.

Merci

Greg

Link to comment
Share on other sites

Par défaut il sont dans /usr/local/nagios/etc

Là tu apelles la vérification des fichiers générés par centreon. Mais il faut ensuite que centreon les déplace vers l'endroit pù nagios les trouve, à savoir /usr/local/nagios/etc. Tu as oublié une étape dans la partie Centreon.

Link to comment
Share on other sites

merci, le souci venait de la... j'ai juste changé la configuration de nagios.cfg qui se trouvait dans /usr/local/nagios/etc

et ca marche, les fichiers de configuration sont toujours dans centreon mais les liens existent

contenu du fichier nagios.cfg

cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/hosts.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/services.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/misccommands.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/checkcommands.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/contactgroups.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/contacts.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/hostgroups.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/servicegroups.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/timeperiods.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/escalations.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/dependencies.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/hostextinfo.cfg
cfg_file=/usr/local/centreon/filesGeneration/nagiosCFG/serviceextinfo.cfg

je ne met ici qu'une partie, le reste étant sensiblement la meme chose...

merci

Greg

vous pouvez le passer en résolu

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...