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">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 '/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">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">gwdsmvsa.myvnc.com</a><br>
# parents milangateway<br> # use generic-host<br>#}<br><br><br><br>