Re: [CentOS-es] Problemas con Nagios

2009-09-28 Por tema Oscar Osta Pueyo
Hola,

2009/9/28 carlos restrepo 

> Oscar, coloca los nombres de maquinas iniciando con mayusculas en el
> apartado "host_name".
> con la siguiente instrucción puedes determinar exactamente que linea del
> archivo de configuración te da problemas
>
> ../bin/nagios -v nagios.cfg
>
> saludos.
>
>
Mejor que lo haga Antonio que es quien tiene el problema :)


-- 
Oscar Osta Pueyo
oostap.lis...@gmail.com
_kiakli_

http://fedoraproject.org/ca/
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] Problemas con Nagios

2009-09-28 Por tema carlos restrepo
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.

# Afrodita.

define host{
host_name   Afrodita
alias i  Active Directory
Windows
address   172.16.0.100
icon_image  windows.png
check_command  check-host-alive
check_interval  5
retry_interval1
max_check_attempts   5
check_period  24x7
process_perf_data   0
retain_nonstatus_information0
contact_groups   admins
notification_interval  30
notification_period   24x7
notification_options d,r
hostgroups
windows-servers,all,ping-servers
}


Saludos.

Carlos R!

2009/9/27 Christian Araquistain 

> Hola, ese un error que tira cuando por error copiaste la definición de
> algùn host verifica eso como primera medida.
>
> Saludos ...
>
>
> 2009/9/26, Antonio Hernandez Benitez :
> > hice lo que me aconsejaste y cambien el nombre a buscador y me marco el
> > mismo errror
> >
> > Warning: Duplicate definition found for host 'buscador' (config file
> > '/etc/nagios/config/hosts.cfg', starting on line 3)
> > Error: Could not add object property in file
> '/etc/nagios/config/hosts.cfg'
> > on line 4.
> >Error processing object config files!
> >
> >
> >>
> >> Message: 5
> >> Date: Sat, 26 Sep 2009 08:09:31 +0200
> >> From: Itxaka serrano 
> >> Subject: Re: [CentOS-es] Problemas con Nagios
> >> To: "centos-es@centos.org" 
> >> Message-ID: <8875542582118598...@unknownmsgid>
> >> Content-Type: text/plain; charset="iso-8859-1"
> >>
> >> Duplicate definition
> >>
> >> 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.
> >>
> >> Es lo único que se me ocurre viendo los cfg
> >>
> >> Saludos
> >>
> >>
> >> Enviado desde mi iPhone
> >>
> >> El 26/09/2009, a las 05:58, Antonio Hernandez Benitez <
> anto...@gmail.com>
> >> escribió:
> >>
> >> Buen dia estoy aprendiendo a usar Nagios y depsues de las
> configuraciones
> >> me
> >> topo con este error alguien podria orientarme
> >>
> >> [r...@dsm_linux nagios]# /usr/bin/nagios -v /etc/nagios/nagios.cfg
> >>
> >> Nagios Core 3.2.0
> >> Copyright (c) 2009 Nagios Core Development Team and Community
> Contributors
> >> Copyright (c) 1999-2009 Ethan Galstad
> >> Last Modified: 08-12-2009
> >> License: GPL
> >>
> >> Website: http://www.nagios.org
> >> Reading configuration data...
> >>   Read main config file okay...
> >> Processing object config file '/etc/nagios/config/commands.cfg'...
> >> Processing object config file '/etc/nagios/config/contacts.cfg'...
> >> Processing object config file '/etc/nagios/config/contactgroups.cfg'...
> >> Processing object config file '/etc/nagios/config/timeperiods.cfg'...
> >> Processing object config file '/etc/nagios/config/templates.cfg'...
> >> Processing object config file '/etc/nagios/config/hosts.cfg'...
> >> Processing object config file '/etc/nagios/config/hostgroups.cfg'...
> >> Processing object config file '/etc/nagios/config/services.cfg'...
> >> Processing object config directory '/etc/nagios/config'...
> >> Processing object config file '/etc/nagios/config/hosts.cfg'...
> >> Warning: Duplicate definition found for host 'google' (config file
> >> '/etc/nagios/config/hosts.cfg', starting on line 3)
> >> Error: Could not add object property in file
> >> '/etc/nagios/config/hosts.cfg'
> >> on line 4.
> >>   Error processing object config files!
> >>
> >>
> >> ***> One or more problems was encountered while processing the config
> >> files...
> >>
> >> Check your configuration file(s) to ensure that they contain valid
> >> directives and data defintions.  

Re: [CentOS-es] Problemas con Nagios

2009-09-28 Por tema carlos restrepo
Oscar, coloca los nombres de maquinas iniciando con mayusculas en el
apartado "host_name".
con la siguiente instrucción puedes determinar exactamente que linea del
archivo de configuración te da problemas

../bin/nagios -v nagios.cfg

saludos.

C.R

2009/9/26 Oscar Osta Pueyo 

> Hola,
>
> El dv 25 de 09 de 2009 a les 22:58 -0500, en/na Antonio Hernandez
> Benitez va escriure:
> > Warning: Duplicate definition found for host 'google' (config file
> > '/etc/nagios/config/hosts.cfg', starting on line 3)
> > Error: Could not add object property in file
> > '/etc/nagios/config/hosts.cfg' on line 4.
> >Error processing object config files!
> >
>
> Tiene pinta que ese objeto ya está en otro fichero de configuración,
> comprueba el resto de .conf.
>
> --
> Oscar Osta Pueyo
> _kiakli_
>
> https://fedoraproject.org/ca/get-fedora
>
> http://fedoraproject.org/ca/
>
>
> ___
> CentOS-es mailing list
> CentOS-es@centos.org
> http://lists.centos.org/mailman/listinfo/centos-es
>



-- 
Carlos Restrepo M.
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] Problemas con Nagios

2009-09-27 Por tema Christian Araquistain
Hola, ese un error que tira cuando por error copiaste la definición de
algùn host verifica eso como primera medida.

Saludos ...


2009/9/26, Antonio Hernandez Benitez :
> hice lo que me aconsejaste y cambien el nombre a buscador y me marco el
> mismo errror
>
> Warning: Duplicate definition found for host 'buscador' (config file
> '/etc/nagios/config/hosts.cfg', starting on line 3)
> Error: Could not add object property in file '/etc/nagios/config/hosts.cfg'
> on line 4.
>Error processing object config files!
>
>
>>
>> Message: 5
>> Date: Sat, 26 Sep 2009 08:09:31 +0200
>> From: Itxaka serrano 
>> Subject: Re: [CentOS-es] Problemas con Nagios
>> To: "centos-es@centos.org" 
>> Message-ID: <8875542582118598...@unknownmsgid>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Duplicate definition
>>
>> 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.
>>
>> Es lo único que se me ocurre viendo los cfg
>>
>> Saludos
>>
>>
>> Enviado desde mi iPhone
>>
>> El 26/09/2009, a las 05:58, Antonio Hernandez Benitez 
>> escribió:
>>
>> Buen dia estoy aprendiendo a usar Nagios y depsues de las configuraciones
>> me
>> topo con este error alguien podria orientarme
>>
>> [r...@dsm_linux nagios]# /usr/bin/nagios -v /etc/nagios/nagios.cfg
>>
>> Nagios Core 3.2.0
>> Copyright (c) 2009 Nagios Core Development Team and Community Contributors
>> Copyright (c) 1999-2009 Ethan Galstad
>> Last Modified: 08-12-2009
>> License: GPL
>>
>> Website: http://www.nagios.org
>> Reading configuration data...
>>   Read main config file okay...
>> Processing object config file '/etc/nagios/config/commands.cfg'...
>> Processing object config file '/etc/nagios/config/contacts.cfg'...
>> Processing object config file '/etc/nagios/config/contactgroups.cfg'...
>> Processing object config file '/etc/nagios/config/timeperiods.cfg'...
>> Processing object config file '/etc/nagios/config/templates.cfg'...
>> Processing object config file '/etc/nagios/config/hosts.cfg'...
>> Processing object config file '/etc/nagios/config/hostgroups.cfg'...
>> Processing object config file '/etc/nagios/config/services.cfg'...
>> Processing object config directory '/etc/nagios/config'...
>> Processing object config file '/etc/nagios/config/hosts.cfg'...
>> Warning: Duplicate definition found for host 'google' (config file
>> '/etc/nagios/config/hosts.cfg', starting on line 3)
>> Error: Could not add object property in file
>> '/etc/nagios/config/hosts.cfg'
>> on line 4.
>>   Error processing object config files!
>>
>>
>> ***> One or more problems was encountered while processing the config
>> files...
>>
>> Check your configuration file(s) to ensure that they contain valid
>> directives and data defintions.  If you are upgrading from a previous
>> version of Nagios, you should be aware that some variables/definitions
>> may have been removed or modified in this version.  Make sure to read
>> the HTML documentation regarding the config files, as well as the
>> 'Whats New' section to find out what has changed.
>>
>> y esta es la configuracion de hosts.cfg
>>
>> #Para checar si la linea de salidaa internet es correcta
>>
>> define host{
>>host_name google
>>alias   Conexion Internet
>>address www.google.com
>>use generic-host
>> }
>>
>> define host{
>>host_name miwangateway
>>alias   ISP Gateway
>>address 189.229.45.238
>>parents google
>>use generic-host
>> }
>>
>> define host{
>>host_name milangateway
>>alias  LAN Internet Gateway
>>address 192.168.1.254
>>parents miwangateway
>>use generic-host
>> }
>>
>> define host{
>>  host_name dsm_linux
>>  alias  Servidor Nagios
>>  address 192.168.1.69
>> # parents milangateway
>>  use generic-host
>> }
>>
>> #define host{
>> #   host_name dsm_vsa
>>#alias  Windows Server
>>   # address gwdsmvsa.myvnc.com
>>  #  parents milangateway
>>  #   use generic-host
>> #}
>>
>>
>>
>> ___
>> CentOS-es mailing list
>> CentOS-es@centos.org
>> http://lists.centos.org/mailman/listinfo/centos-es
>>  próxima parte 
>> Se ha borrado un adjunto en formato HTML...
>> URL:
>> http://lists.centos.org/pipermail/centos-es/attachments/20090926/8a3fa4b9/attachment.html
>>
>> --
>>
>> ___
>> CentOS-es mailing list
>> CentOS-es@centos.org
>> http://lists.centos.org/mailman/listinfo/centos-es
>>
>>
>> Fin de Resumen de CentOS-es, Vol 33, Envío 64
>> *
>>
>


-- 
Saludos ...

Christian.-
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


[CentOS-es] Problemas con Nagios

2009-09-26 Por tema Antonio Hernandez Benitez
hice lo que me aconsejaste y cambien el nombre a buscador y me marco el
mismo errror

Warning: Duplicate definition found for host 'buscador' (config file
'/etc/nagios/config/hosts.cfg', starting on line 3)
Error: Could not add object property in file '/etc/nagios/config/hosts.cfg'
on line 4.
   Error processing object config files!


>
> Message: 5
> Date: Sat, 26 Sep 2009 08:09:31 +0200
> From: Itxaka serrano 
> Subject: Re: [CentOS-es] Problemas con Nagios
> To: "centos-es@centos.org" 
> Message-ID: <8875542582118598...@unknownmsgid>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Duplicate definition
>
> 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.
>
> Es lo único que se me ocurre viendo los cfg
>
> Saludos
>
>
> Enviado desde mi iPhone
>
> El 26/09/2009, a las 05:58, Antonio Hernandez Benitez 
> escribió:
>
> Buen dia estoy aprendiendo a usar Nagios y depsues de las configuraciones
> me
> topo con este error alguien podria orientarme
>
> [r...@dsm_linux nagios]# /usr/bin/nagios -v /etc/nagios/nagios.cfg
>
> Nagios Core 3.2.0
> Copyright (c) 2009 Nagios Core Development Team and Community Contributors
> Copyright (c) 1999-2009 Ethan Galstad
> Last Modified: 08-12-2009
> License: GPL
>
> Website: http://www.nagios.org
> Reading configuration data...
>   Read main config file okay...
> Processing object config file '/etc/nagios/config/commands.cfg'...
> Processing object config file '/etc/nagios/config/contacts.cfg'...
> Processing object config file '/etc/nagios/config/contactgroups.cfg'...
> Processing object config file '/etc/nagios/config/timeperiods.cfg'...
> Processing object config file '/etc/nagios/config/templates.cfg'...
> Processing object config file '/etc/nagios/config/hosts.cfg'...
> Processing object config file '/etc/nagios/config/hostgroups.cfg'...
> Processing object config file '/etc/nagios/config/services.cfg'...
> Processing object config directory '/etc/nagios/config'...
> Processing object config file '/etc/nagios/config/hosts.cfg'...
> Warning: Duplicate definition found for host 'google' (config file
> '/etc/nagios/config/hosts.cfg', starting on line 3)
> Error: Could not add object property in file '/etc/nagios/config/hosts.cfg'
> on line 4.
>   Error processing object config files!
>
>
> ***> One or more problems was encountered while processing the config
> files...
>
> Check your configuration file(s) to ensure that they contain valid
> directives and data defintions.  If you are upgrading from a previous
> version of Nagios, you should be aware that some variables/definitions
> may have been removed or modified in this version.  Make sure to read
> the HTML documentation regarding the config files, as well as the
> 'Whats New' section to find out what has changed.
>
> y esta es la configuracion de hosts.cfg
>
> #Para checar si la linea de salidaa internet es correcta
>
> define host{
>host_name google
>alias   Conexion Internet
>address www.google.com
>use generic-host
> }
>
> define host{
>host_name miwangateway
>alias   ISP Gateway
>address 189.229.45.238
>parents google
>use generic-host
> }
>
> define host{
>host_name milangateway
>alias  LAN Internet Gateway
>address 192.168.1.254
>parents miwangateway
>use generic-host
> }
>
> define host{
>  host_name dsm_linux
>  alias  Servidor Nagios
>  address 192.168.1.69
> # parents milangateway
>  use generic-host
> }
>
> #define host{
> #   host_name dsm_vsa
>#alias  Windows Server
>   # address gwdsmvsa.myvnc.com
>  #  parents milangateway
>  #   use generic-host
> #}
>
>
>
> ___
> CentOS-es mailing list
> CentOS-es@centos.org
> http://lists.centos.org/mailman/listinfo/centos-es
>  próxima parte 
> Se ha borrado un adjunto en formato HTML...
> URL:
> http://lists.centos.org/pipermail/centos-es/attachments/20090926/8a3fa4b9/attachment.html
>
> --
>
> ___
> CentOS-es mailing list
> CentOS-es@centos.org
> http://lists.centos.org/mailman/listinfo/centos-es
>
>
> Fin de Resumen de CentOS-es, Vol 33, Envío 64
> *
>
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] Problemas con Nagios

2009-09-26 Por tema Oscar Osta Pueyo
Hola,

El dv 25 de 09 de 2009 a les 22:58 -0500, en/na Antonio Hernandez
Benitez va escriure:
> Warning: Duplicate definition found for host 'google' (config file
> '/etc/nagios/config/hosts.cfg', starting on line 3)
> Error: Could not add object property in file
> '/etc/nagios/config/hosts.cfg' on line 4.
>Error processing object config files!
> 

Tiene pinta que ese objeto ya está en otro fichero de configuración,
comprueba el resto de .conf.

-- 
Oscar Osta Pueyo
_kiakli_

https://fedoraproject.org/ca/get-fedora

http://fedoraproject.org/ca/


___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] Problemas con Nagios

2009-09-25 Por tema Itxaka serrano
Duplicate definition

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.

Es lo único que se me ocurre viendo los cfg

Saludos


Enviado desde mi iPhone

El 26/09/2009, a las 05:58, Antonio Hernandez Benitez 
escribió:

Buen dia estoy aprendiendo a usar Nagios y depsues de las configuraciones me
topo con este error alguien podria orientarme

[r...@dsm_linux nagios]# /usr/bin/nagios -v /etc/nagios/nagios.cfg

Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios/config/commands.cfg'...
Processing object config file '/etc/nagios/config/contacts.cfg'...
Processing object config file '/etc/nagios/config/contactgroups.cfg'...
Processing object config file '/etc/nagios/config/timeperiods.cfg'...
Processing object config file '/etc/nagios/config/templates.cfg'...
Processing object config file '/etc/nagios/config/hosts.cfg'...
Processing object config file '/etc/nagios/config/hostgroups.cfg'...
Processing object config file '/etc/nagios/config/services.cfg'...
Processing object config directory '/etc/nagios/config'...
Processing object config file '/etc/nagios/config/hosts.cfg'...
Warning: Duplicate definition found for host 'google' (config file
'/etc/nagios/config/hosts.cfg', starting on line 3)
Error: Could not add object property in file '/etc/nagios/config/hosts.cfg'
on line 4.
   Error processing object config files!


***> One or more problems was encountered while processing the config
files...

 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.

y esta es la configuracion de hosts.cfg

#Para checar si la linea de salidaa internet es correcta

define host{
host_name google
alias   Conexion Internet
address www.google.com
use generic-host
}

define host{
host_name miwangateway
alias   ISP Gateway
address 189.229.45.238
parents google
use generic-host
}

define host{
host_name milangateway
alias  LAN Internet Gateway
address 192.168.1.254
parents miwangateway
use generic-host
}

define host{
  host_name dsm_linux
  alias  Servidor Nagios
  address 192.168.1.69
 # parents milangateway
  use generic-host
}

#define host{
 #   host_name dsm_vsa
#alias  Windows Server
   # address gwdsmvsa.myvnc.com
  #  parents milangateway
 #   use generic-host
#}



___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


[CentOS-es] Problemas con Nagios

2009-09-25 Por tema Antonio Hernandez Benitez
Buen dia estoy aprendiendo a usar Nagios y depsues de las configuraciones me
topo con este error alguien podria orientarme

[r...@dsm_linux nagios]# /usr/bin/nagios -v /etc/nagios/nagios.cfg

Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios/config/commands.cfg'...
Processing object config file '/etc/nagios/config/contacts.cfg'...
Processing object config file '/etc/nagios/config/contactgroups.cfg'...
Processing object config file '/etc/nagios/config/timeperiods.cfg'...
Processing object config file '/etc/nagios/config/templates.cfg'...
Processing object config file '/etc/nagios/config/hosts.cfg'...
Processing object config file '/etc/nagios/config/hostgroups.cfg'...
Processing object config file '/etc/nagios/config/services.cfg'...
Processing object config directory '/etc/nagios/config'...
Processing object config file '/etc/nagios/config/hosts.cfg'...
Warning: Duplicate definition found for host 'google' (config file
'/etc/nagios/config/hosts.cfg', starting on line 3)
Error: Could not add object property in file '/etc/nagios/config/hosts.cfg'
on line 4.
   Error processing object config files!


***> One or more problems was encountered while processing the config
files...

 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.

y esta es la configuracion de hosts.cfg

#Para checar si la linea de salidaa internet es correcta

define host{
host_name google
alias   Conexion Internet
address www.google.com
use generic-host
}

define host{
host_name miwangateway
alias   ISP Gateway
address 189.229.45.238
parents google
use generic-host
}

define host{
host_name milangateway
alias  LAN Internet Gateway
address 192.168.1.254
parents miwangateway
use generic-host
}

define host{
  host_name dsm_linux
  alias  Servidor Nagios
  address 192.168.1.69
 # parents milangateway
  use generic-host
}

#define host{
 #   host_name dsm_vsa
#alias  Windows Server
   # address gwdsmvsa.myvnc.com
  #  parents milangateway
 #   use generic-host
#}
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es