Bonjour, pouvez vous m'orienter concernant l'erreur ci dessous avec Nagios ?
Warning: Duplicate definition found for host 'generic-host' (config file '/usr/local/nagios/etc/hosts.cfg', starting on line 2) Warning: Duplicate definition found for service 'generic-service' (config file '/usr/local/nagios/etc/services.cfg', starting on line 2) Je ne comprends pas cette notion de "Duplicate definition", les paramètres ne semblent pourtant pas dupliqués dans ces fichiers ? Merci pour info : voici mon fichier hosts : # Generic host definition template define host { name generic-host register 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period 24x7 notification_options d,u,r } # Definition du materiel reseau du labo define host { host_name sw01 use generic-host alias switch 1 address 192.168.100.5 } define host { host_name printer1 use generic-host alias Imprimante 1 address 192.168.100.170 } # Definition des hotes du labo define host { host_name pc003 use generic-host alias hote PC-003 address 192.168.100.240 } define host { host_name pc004 use generic-host alias hote PC-004 address 192.168.100.4 } define host{ host_name proxyhttp use generic-host alias proxy web http address 192.168.12.10 } define host { host_name pc007 use generic-host alias hote PC-007 address 192.168.100.100 } define host { host_name pc012 use generic-host alias hote PC-012 address 192.168.100.12 } # Definition de quelques serveurs web de l'Internet # Web Google define host { host_name www-google use generic-host alias serveur web Google address www.google.com } ******************************************************* et le fichiers services : # Generic service definition template define service { name generic-service register 0 active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups labo-admins notification_interval 240 notification_period 24x7 notification_options c,r } define service { host_name * use generic-service service_description ping check_command check_ping!300.0,20%!500.0,60% } define service { hostgroup_name proxy use generic-service service_description Proxy HTTP check_command check_smtp } define service { hostgroup_name printer use generic-service service_description Imprimante check_command check_dns } define service { hostgroup_name web-internet use generic-service service_description site web check_command check_http }
_______________________________________________ Nagios French Mailing List Sponsored by: EauZone - http://eauzone.be Archives: http://www.mail-archive.com/nagios-french@lists.unixtech.be/