Comment configurer ngios sous ubuntu?
salut à tous
je vien de configurer mon serveur nagios3 selon la documentation suivante http://doc.ubuntu-fr.org/nagios. après la configuration j'ai saisie la commande suivante "nagios3 -v nagios3.cfg" afin de vérifier la syntaxe de mes fichiers de configuration et le message d'erreur suivant m'es affiché: Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/home/nagios3.cfg' for reading!
Error processing main config file!
***> The name of the main configuration file looks suspicious...
Make sure you are specifying the name of the MAIN configuration file on
the command line and not the name of another configuration file. The
main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'
***> 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.
mais je comprend pas que doi-je faire s'ils vous plais aidez moi
je vien de configurer mon serveur nagios3 selon la documentation suivante http://doc.ubuntu-fr.org/nagios. après la configuration j'ai saisie la commande suivante "nagios3 -v nagios3.cfg" afin de vérifier la syntaxe de mes fichiers de configuration et le message d'erreur suivant m'es affiché: Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/home/nagios3.cfg' for reading!
Error processing main config file!
***> The name of the main configuration file looks suspicious...
Make sure you are specifying the name of the MAIN configuration file on
the command line and not the name of another configuration file. The
main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'
***> 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.
mais je comprend pas que doi-je faire s'ils vous plais aidez moi
A voir également:
- Comment configurer ngios sous ubuntu?
- Comment configurer chromecast - Guide
- Ubuntu 32 bits - Télécharger - Systèmes d'exploitation
- Configurer et restaurer - Guide
- Configurer chromecast usine - Guide
- Configurer chromecast wifi - Guide
1 réponse
Error: Cannot open main configuration file '/home/nagios3.cfg' for reading!
Ce message d'erreur me paraît bizarre.
Pourquoi nagios va-t'il chercher ton fichier de configuration dans /home et non dans /etc/nagios ? À mon avis c'est parce que tu as lancé ta commande depuis /home et que tu as passé une chemin relatif (nagios3 -v nagios3.cfg). Ainsi je commencerais par essayer de lancer :
(en admettant que /etc/nagios/nagios3.cfg soit le chemin du fichier de configuration).
Bonne chance
Ce message d'erreur me paraît bizarre.
Pourquoi nagios va-t'il chercher ton fichier de configuration dans /home et non dans /etc/nagios ? À mon avis c'est parce que tu as lancé ta commande depuis /home et que tu as passé une chemin relatif (nagios3 -v nagios3.cfg). Ainsi je commencerais par essayer de lancer :
nagios3 -v /etc/nagios/nagios3.cfg
(en admettant que /etc/nagios/nagios3.cfg soit le chemin du fichier de configuration).
Bonne chance