Oscar, yo he configurado varias versiones de nagios y no les coloco el apartado "parents", prueba comentando esas lineas y me cuentas... aqui te envió una parte del archivo de configuración hosts.cfg.<br><br># Afrodita.<br>
<br>define host{<br> host_name Afrodita<br> alias i Active Directory Windows<br> address 172.16.0.100<br>
icon_image windows.png<br> check_command check-host-alive<br> check_interval 5<br> retry_interval 1<br>
max_check_attempts 5<br> check_period 24x7<br> process_perf_data 0<br> retain_nonstatus_information 0<br> contact_groups admins<br>
notification_interval 30<br> notification_period 24x7<br> notification_options d,r<br> hostgroups windows-servers,all,ping-servers<br>
}<br><br><br>Saludos.<br><br>Carlos R!<br><br><div class="gmail_quote">2009/9/27 Christian Araquistain <span dir="ltr"><<a href="mailto:araquisc@gmail.com">araquisc@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hola, ese un error que tira cuando por error copiaste la definición de<br>
algùn host verifica eso como primera medida.<br>
<br>
Saludos ...<br>
<br>
<br>
2009/9/26, Antonio Hernandez Benitez <<a href="mailto:antonhb@gmail.com">antonhb@gmail.com</a>>:<br>
<div><div></div><div class="h5">> hice lo que me aconsejaste y cambien el nombre a buscador y me marco el<br>
> mismo errror<br>
><br>
> Warning: Duplicate definition found for host 'buscador' (config file<br>
> '/etc/nagios/config/hosts.cfg', starting on line 3)<br>
> Error: Could not add object property in file '/etc/nagios/config/hosts.cfg'<br>
> on line 4.<br>
> Error processing object config files!<br>
><br>
><br>
>><br>
>> Message: 5<br>
>> Date: Sat, 26 Sep 2009 08:09:31 +0200<br>
>> From: Itxaka serrano <<a href="mailto:itxakaserrano@gmail.com">itxakaserrano@gmail.com</a>><br>
>> Subject: Re: [CentOS-es] Problemas con Nagios<br>
>> To: "<a href="mailto:centos-es@centos.org">centos-es@centos.org</a>" <<a href="mailto:centos-es@centos.org">centos-es@centos.org</a>><br>
>> Message-ID: <8875542582118598289@unknownmsgid><br>
>> Content-Type: text/plain; charset="iso-8859-1"<br>
>><br>
>> Duplicate definition<br>
>><br>
>> Quizás estaría bien si probases a cambiarle el nombre al primer host_name<br>
>> porque suena a que al leer 2veces Google no lo coje bien.<br>
>><br>
>> Es lo único que se me ocurre viendo los cfg<br>
>><br>
>> Saludos<br>
>><br>
>><br>
>> Enviado desde mi iPhone<br>
>><br>
>> El 26/09/2009, a las 05:58, Antonio Hernandez Benitez <<a href="mailto:antonhb@gmail.com">antonhb@gmail.com</a>><br>
>> escribió:<br>
>><br>
>> Buen dia estoy aprendiendo a usar Nagios y depsues de las configuraciones<br>
>> me<br>
>> topo con este error alguien podria orientarme<br>
>><br>
>> [root@dsm_linux nagios]# /usr/bin/nagios -v /etc/nagios/nagios.cfg<br>
>><br>
>> Nagios Core 3.2.0<br>
>> Copyright (c) 2009 Nagios Core Development Team and Community Contributors<br>
>> Copyright (c) 1999-2009 Ethan Galstad<br>
>> Last Modified: 08-12-2009<br>
>> License: GPL<br>
>><br>
>> Website: <a href="http://www.nagios.org" target="_blank">http://www.nagios.org</a><br>
>> Reading configuration data...<br>
>> Read main config file okay...<br>
>> Processing object config file '/etc/nagios/config/commands.cfg'...<br>
>> Processing object config file '/etc/nagios/config/contacts.cfg'...<br>
>> Processing object config file '/etc/nagios/config/contactgroups.cfg'...<br>
>> Processing object config file '/etc/nagios/config/timeperiods.cfg'...<br>
>> Processing object config file '/etc/nagios/config/templates.cfg'...<br>
>> Processing object config file '/etc/nagios/config/hosts.cfg'...<br>
>> Processing object config file '/etc/nagios/config/hostgroups.cfg'...<br>
>> Processing object config file '/etc/nagios/config/services.cfg'...<br>
>> Processing object config directory '/etc/nagios/config'...<br>
>> Processing object config file '/etc/nagios/config/hosts.cfg'...<br>
>> Warning: Duplicate definition found for host 'google' (config file<br>
>> '/etc/nagios/config/hosts.cfg', starting on line 3)<br>
>> Error: Could not add object property in file<br>
>> '/etc/nagios/config/hosts.cfg'<br>
>> on line 4.<br>
>> Error processing object config files!<br>
>><br>
>><br>
>> ***> One or more problems was encountered while processing the config<br>
>> files...<br>
>><br>
>> Check your configuration file(s) to ensure that they contain valid<br>
>> directives and data defintions. If you are upgrading from a previous<br>
>> version of Nagios, you should be aware that some variables/definitions<br>
>> may have been removed or modified in this version. Make sure to read<br>
>> the HTML documentation regarding the config files, as well as the<br>
>> 'Whats New' section to find out what has changed.<br>
>><br>
>> y esta es la configuracion de hosts.cfg<br>
>><br>
>> #Para checar si la linea de salidaa internet es correcta<br>
>><br>
>> define host{<br>
>> host_name google<br>
>> alias Conexion Internet<br>
>> address <a href="http://www.google.com" target="_blank">www.google.com</a><br>
>> use generic-host<br>
>> }<br>
>><br>
>> define host{<br>
>> host_name miwangateway<br>
>> alias ISP Gateway<br>
>> address 189.229.45.238<br>
>> parents google<br>
>> use generic-host<br>
>> }<br>
>><br>
>> define host{<br>
>> host_name milangateway<br>
>> alias LAN Internet Gateway<br>
>> address 192.168.1.254<br>
>> parents miwangateway<br>
>> use generic-host<br>
>> }<br>
>><br>
>> define host{<br>
>> host_name dsm_linux<br>
>> alias Servidor Nagios<br>
>> address 192.168.1.69<br>
>> # parents milangateway<br>
>> use generic-host<br>
>> }<br>
>><br>
>> #define host{<br>
>> # host_name dsm_vsa<br>
>> # alias Windows Server<br>
>> # address <a href="http://gwdsmvsa.myvnc.com" target="_blank">gwdsmvsa.myvnc.com</a><br>
>> # parents milangateway<br>
>> # use generic-host<br>
>> #}<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> CentOS-es mailing list<br>
>> <a href="mailto:CentOS-es@centos.org">CentOS-es@centos.org</a><br>
>> <a href="http://lists.centos.org/mailman/listinfo/centos-es" target="_blank">http://lists.centos.org/mailman/listinfo/centos-es</a><br>
>> ------------ próxima parte ------------<br>
>> Se ha borrado un adjunto en formato HTML...<br>
>> URL:<br>
>> <a href="http://lists.centos.org/pipermail/centos-es/attachments/20090926/8a3fa4b9/attachment.html" target="_blank">http://lists.centos.org/pipermail/centos-es/attachments/20090926/8a3fa4b9/attachment.html</a><br>
>><br>
>> ------------------------------<br>
>><br>
>> _______________________________________________<br>
>> CentOS-es mailing list<br>
>> <a href="mailto:CentOS-es@centos.org">CentOS-es@centos.org</a><br>
>> <a href="http://lists.centos.org/mailman/listinfo/centos-es" target="_blank">http://lists.centos.org/mailman/listinfo/centos-es</a><br>
>><br>
>><br>
>> Fin de Resumen de CentOS-es, Vol 33, Envío 64<br>
>> *********************************************<br>
>><br>
><br>
<br>
<br>
</div></div>--<br>
Saludos ...<br>
<font color="#888888"><br>
Christian.-<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
CentOS-es mailing list<br>
<a href="mailto:CentOS-es@centos.org">CentOS-es@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos-es" target="_blank">http://lists.centos.org/mailman/listinfo/centos-es</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Carlos Restrepo M.<br>