Announcement
Collapse
No announcement yet.
Problème démarrage Nagios
Collapse
X
-
C'est normal que tu n'ais rien parce que nagios te fournit une config minimal au début il faut donc uniquement inclure le fichier minimal.cfg..
Leave a comment:
-
J'ai vérifié et c'est ok mais ça ne change rien. De plus, je n'ai rien dans les fichiers checkcommands.cfg et misccommands.cfg...Je ne sais pas si c'est normal...Si ce n'est pas normal, peut-être qu'il y a eu un problème durant l'installation de Nagios...Dans ce cas, comment puis-je le vérifier ?
Leave a comment:
-
euh pardon c'etait dans le fichier nagios.cfg tu dois surement avoir un lien configurer vers minimal.cfg il faut que tu vérifié que c'est bien le cas,, il ne faut pas qu'il soit commenté. Et si il y a des liens vers host.cfg ou autres mets les en commentaires.
Leave a comment:
-
Je n'ai pas de fichier host.cfg dans le répertoire /usr/local/nagios/etc/. Je n'ai que ces fichiers-là :
- cgi.cfg
- checkcommands.cfg
- minimal.cfg
- misccommands.cfg
- nagios.cfg
- resource.cfg
Leave a comment:
-
Ben il faut que tu regardes dans le fichier host.cfg si tu as bien tout les liens vers les autres fichiers etc...
Leave a comment:
-
Lorsque je lance cette commande /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg , voilà ce que j'obtiens :
Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL
Reading configuration data...
***> 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.
Que faut-il que je modifie ?
Leave a comment:
-
grep -r 24x7 *
contacts.cfg:host_notification_period 24x7
contacts.cfgervice_notification_period 24x7
hosts.cfg:check_period 24x7
hosts.cfg:notification_period 24x7
localhost.cfg:# notifications, etc. The classic "24x7" support nightmare. :-)
localhost.cfg: timeperiod_name 24x7
localhost.cfg: service_notification_period 24x7
localhost.cfg: host_notification_period 24x7
localhost.cfg: notification_period 24x7 ; Send host notifications at any time
localhost.cfg: check_period 24x7 ; By default, Linux hosts are checked round the clock
localhost.cfg: check_period 24x7 ; The service can be checked at any time of the day
localhost.cfg: notification_period 24x7 ; Notifications can be sent out at any time
services.cfg:check_period 24x7
services.cfg:notification_period 24x7
services.cfg~:check_period 24x7
services.cfg~:notification_period 24x7
timeperiods.cfg: timeperiod_name 24x7
timeperiods.cfg~: timeperiod_name 24x7
Leave a comment:
-
jai ca dans mon fichier
define timeperiod{
timeperiod_name 24x7
alias 24_Hours_A_Day,_7_Days_A_Week
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
Leave a comment:
-
Vérifie dans ton fichier /usr/local/nagios/etc/timeperiods.cfg, apparement tu as un doublon sur la définition de la timeperiod 24x7.
Leave a comment:
-
22:17:57 [email protected]:/usr/local/nagios/etc 13$ /usr/local/nagios/bin/nagios -v nagios.cfg
c'est ca mon soucis en faite
Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data...
Error: Timeperiod '24x7' has already been defined
Error: Could not register timeperiod (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 20)
***> One or more problems was encountered while processing the config files...
Leave a comment:
-
Regarde dans le doc nagios. Et c'est dans le message d'erreur, t'a un problème dans tes fichier de conf.
Pour savoir d'où ça vient, tu peux faire :
Code:$> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Leave a comment:
-
Problème démarrage Nagios
Bonjour,
Je n'arrive pas à démarrer Nagios, voici la commande que je lance :
# /etc/init.d/nagios start
et voici le message d'erreur :
CONFIG ERROR! Start aborted. Check your Nagios configuration.
Pourriez-vous me dire ce qu'il faut que je modifie pour que celà fonctionne ?
Merci d'avance.Tags: None
Leave a comment: