<html><body bgcolor="#FFFFFF"><div>Duplicate definition</div><div><br></div><div>Quizás estaría bien si probases a cambiarle el nombre al primer host_name porque suena a que al leer 2veces Google no lo coje bien. </div><div>
<br></div><div>Es lo único que se me ocurre viendo los cfg</div><div><br></div><div>Saludos</div><div><br><br>Enviado desde mi iPhone</div><div><br>El 26/09/2009, a las 05:58, Antonio Hernandez Benitez <<a href="mailto:antonhb@gmail.com">antonhb@gmail.com</a>> escribió:<br>
<br></div><div></div><blockquote type="cite"><div>Buen dia estoy aprendiendo a usar Nagios y depsues de las configuraciones me 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"><a href="http://www.nagios.org">http://www.nagios.org</a></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 '/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><br>***> One or more problems was encountered while processing the config 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"><a href="http://www.google.com">www.google.com</a></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"><a href="http://gwdsmvsa.myvnc.com">gwdsmvsa.myvnc.com</a></a><br>
# parents milangateway<br> # use generic-host<br>#}<br><br><br><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>CentOS-es mailing list</span><br><span><a href="mailto:CentOS-es@centos.org">CentOS-es@centos.org</a></span><br>
<span><a href="http://lists.centos.org/mailman/listinfo/centos-es">http://lists.centos.org/mailman/listinfo/centos-es</a></span><br></div></blockquote></body></html>