hice lo que me aconsejaste y cambien el nombre a buscador y me marco el mismo errror<br><br>Warning: Duplicate definition found for host 'buscador' (config file '/etc/nagios/config/hosts.cfg', starting on line 3)<br>
Error: Could not add object property in file '/etc/nagios/config/hosts.cfg' on line 4.<br> Error processing object config files!<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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 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 '/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: <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>
</blockquote></div><br>