Configuration nagios

Fermé
josesph Messages postés 6 Date d'inscription vendredi 18 juin 2010 Statut Membre Dernière intervention 22 septembre 2013 - Modifié par jipicy le 18/06/2010 à 18:28
josesph Messages postés 6 Date d'inscription vendredi 18 juin 2010 Statut Membre Dernière intervention 22 septembre 2013 - 18 juin 2010 à 20:15
Bonjour à tous, j'installe nagios mais j'ai apparemmant un probleme de configuration. Si quelqu'un peut m'aider sa serrai vraiment gentil.

Lorsque je tape la commande suivente voici ce qui s'affiche:
#root@joseph-laptop:/usr/local/nagios/etc# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.2.1
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-09-2010
License: GPL

Website: https://www.nagios.org/
Reading configuration data...
Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios.cfg' for reading!
Error processing main config file!



***> One or more problems was encountered while processing the config files...

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.


Et quand je fait: #root@joseph-laptop:/usr/local/nagios/bin# ./nagios /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.2.1
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-09-2010
License: GPL

Website: https://www.nagios.org/
Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios.cfg' for reading!
Warning: Could not get passwd entry for 'nagios '
Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for writing
Nagios 3.2.1 starting... (PID=5636)
Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for writing
Local time is Fri Jun 18 16:16:35 CET 2010
Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for writing
Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for writing
Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=5636)

AIDER MOI SVP...

5 réponses

josesph Messages postés 6 Date d'inscription vendredi 18 juin 2010 Statut Membre Dernière intervention 22 septembre 2013 1
18 juin 2010 à 20:15
Aider moi SVP
je viens de le revoire et voila le resultat:

root@joseph-laptop:/usr/local/nagios/etc# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.2.1
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-09-2010
License: GPL

Website: https://www.nagios.org/
Reading configuration data...
Read main config file okay...
Unable to open main config file '/usr/local/nagios/etc/nagios.cfg'
Error processing object config files!


***> One or more problems was encountered while processing the config files...

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
1
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 894
18 juin 2010 à 18:30
Salut,

Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios.cfg' for reading!
Le fichier existe-t-il ?
0
josesph Messages postés 6 Date d'inscription vendredi 18 juin 2010 Statut Membre Dernière intervention 22 septembre 2013 1
18 juin 2010 à 19:22
Oui le fichier /usr/local/nagios/etc/nagios.cfg existe bien
0
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 894
18 juin 2010 à 19:25
One or more problems was encountered while processing the config files..
Est-il bien configuré ?
0

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

Posez votre question
josesph Messages postés 6 Date d'inscription vendredi 18 juin 2010 Statut Membre Dernière intervention 22 septembre 2013 1
18 juin 2010 à 19:34
je viens de le reviser et voila:

root@joseph-laptop:/usr/local/nagios/etc# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.2.1
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-09-2010
License: GPL

Website: https://www.nagios.org/
Reading configuration data...
Read main config file okay...
Unable to open main config file '/usr/local/nagios/etc/nagios.cfg'
Error processing object config files!


***> One or more problems was encountered while processing the config files...

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.
0