Bonjour,
J'ai installé un nagios 2.7 avec oreon 1.3.3, j'ai ajouté des 39, ça avait l'air de marché sauf pour les templates je suis obligé de ma tapé tous un par un, parce que j'ai crée une template "routeur" mais lorsque je le choisie lors de la création de hosts il ne charge pas la template comme je l'ai crée, je suis donc obligé d'utiliser la fonction dupliquer. Bref, là n'est pas le réel problem, donc je crée mes hosts et je décide de rajouter des utilisateurs dans un contact group "Astreinte" et lorsque j'ai fini j'ai eu l'erreur suivante lors de la "pre-fligh check":
--------------------------------------------------------------
Nagios 2.7
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 01-19-2007
License: GPL
Reading configuration data...
Error: Invalid hostgroup object directive 'contact_groups'.
Error: Could not add object property in file '/usr/local/oreon133/filesGeneration/nagiosCFG/hostgroups.cfg' on line 24.
***> 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.
cgi.cfg - déplacement OK
checkcommands.cfg - déplacement OK
contactgroups.cfg - déplacement OK
contacts.cfg - déplacement OK
dependencies.cfg - déplacement OK
escalations.cfg - déplacement OK
hostextinfo.cfg - déplacement OK
hostgroups.cfg - déplacement OK
hosts.cfg - déplacement OK
misccommands.cfg - déplacement OK
nagios.cfg - déplacement OK
resource.cfg - déplacement OK
serviceextinfo.cfg - déplacement OK
servicegroups.cfg - déplacement OK
services.cfg - déplacement OK
timeperiods.cfg - déplacement OK
Running configuration check... FAILED! Restart aborted. Check your Nagios configuration.
---------------------------------------------------------
Alors je vous assure que je n'essaye pas de migrer de 1.2 à 1.3 ou de nagios 1.x a 2.x, ceci est une install neuf. J'ai cherché dans le forum et j'ai trouvé que des relations avec une migration de nagios et oreon, or c'est pas dutout ça.
Ci dessous les fichiers hostgroups.cfg, nagios.cfg, hosts.cfg:
define hostgroup{
hostgroup_name Backbone
alias Backbone
members routeur1, routeur 2
contact_groups astreinte, Noc
}
define contactgroup{
contactgroup_name astreinte
alias astreinte
members <les_noms_sont_protégés>
}
define contactgroup{
contactgroup_name Noc
alias Noc
members Exploitation
}
define host{
host_name routeur1
use Router-
alias routeur1
address 10.0.0.1
check_command check_host_alive
max_check_attempts 3
retain_status_information 1
notification_interval 30
notification_period 24x7
notification_options d,r
notifications_enabled 1
stalking_options o,d
}
define host{
host_name routeur2
use Router-
alias Routeur2
address 10.0.0.2
check_command check_host_alive
max_check_attempts 3
retain_status_information 1
notification_interval 30
notification_period 24x7
notification_options d,r
notifications_enabled 1
stalking_options o,d
}
Merci d'avance pour votre aide.
J'ai installé un nagios 2.7 avec oreon 1.3.3, j'ai ajouté des 39, ça avait l'air de marché sauf pour les templates je suis obligé de ma tapé tous un par un, parce que j'ai crée une template "routeur" mais lorsque je le choisie lors de la création de hosts il ne charge pas la template comme je l'ai crée, je suis donc obligé d'utiliser la fonction dupliquer. Bref, là n'est pas le réel problem, donc je crée mes hosts et je décide de rajouter des utilisateurs dans un contact group "Astreinte" et lorsque j'ai fini j'ai eu l'erreur suivante lors de la "pre-fligh check":
--------------------------------------------------------------
Nagios 2.7
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 01-19-2007
License: GPL
Reading configuration data...
Error: Invalid hostgroup object directive 'contact_groups'.
Error: Could not add object property in file '/usr/local/oreon133/filesGeneration/nagiosCFG/hostgroups.cfg' on line 24.
***> 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.
cgi.cfg - déplacement OK
checkcommands.cfg - déplacement OK
contactgroups.cfg - déplacement OK
contacts.cfg - déplacement OK
dependencies.cfg - déplacement OK
escalations.cfg - déplacement OK
hostextinfo.cfg - déplacement OK
hostgroups.cfg - déplacement OK
hosts.cfg - déplacement OK
misccommands.cfg - déplacement OK
nagios.cfg - déplacement OK
resource.cfg - déplacement OK
serviceextinfo.cfg - déplacement OK
servicegroups.cfg - déplacement OK
services.cfg - déplacement OK
timeperiods.cfg - déplacement OK
Running configuration check... FAILED! Restart aborted. Check your Nagios configuration.
---------------------------------------------------------
Alors je vous assure que je n'essaye pas de migrer de 1.2 à 1.3 ou de nagios 1.x a 2.x, ceci est une install neuf. J'ai cherché dans le forum et j'ai trouvé que des relations avec une migration de nagios et oreon, or c'est pas dutout ça.
Ci dessous les fichiers hostgroups.cfg, nagios.cfg, hosts.cfg:
define hostgroup{
hostgroup_name Backbone
alias Backbone
members routeur1, routeur 2
contact_groups astreinte, Noc
}
define contactgroup{
contactgroup_name astreinte
alias astreinte
members <les_noms_sont_protégés>
}
define contactgroup{
contactgroup_name Noc
alias Noc
members Exploitation
}
define host{
host_name routeur1
use Router-
alias routeur1
address 10.0.0.1
check_command check_host_alive
max_check_attempts 3
retain_status_information 1
notification_interval 30
notification_period 24x7
notification_options d,r
notifications_enabled 1
stalking_options o,d
}
define host{
host_name routeur2
use Router-
alias Routeur2
address 10.0.0.2
check_command check_host_alive
max_check_attempts 3
retain_status_information 1
notification_interval 30
notification_period 24x7
notification_options d,r
notifications_enabled 1
stalking_options o,d
}
Merci d'avance pour votre aide.
Comment