Re: [Nagios-users-br] Could not register hostgroup

2007-02-12 Por tôpico Andre Luis
Oi Douglas tubo bem!!!
   
  Olha só, verifiquei no meu hostgroups.cfg e só existe um hostgroups 
"netapp_filers".
   
  O que pode ser??
  
Douglas Eduardo <[EMAIL PROTECTED]> escreveu:
  Oi Andre tudo bem?

Verifica no arquivo hostgroups.cfg pois há dois hostgroups "netapp_filers"
definido no arquivo.

Douglas


2007/2/2, Andre Luis :
>
> Pessoal,
>
> Estou tentando iniciar o nagios, mas estou recebendo a mensagem de erro
> abaixo:
>
>
> --
> servidorA# ./nagios -v /usr/local/nagios/etc/nagios.cfg
> Nagios 2.5
> Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
> Last Modified: 07-13-2006
> License: GPL
> Reading configuration data...
> Error: Hostgroup 'netapp_filers' has already been defined
> Error: Could not register hostgroup (config file
> '/usr/local/nagios/etc/servers/hostgroups.cfg', starting on line 16)
> ***> 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.
>
> --
>
> O arquivo hostgroups.cfg contém:
> ##
> # HOST GROUP DEFINITIONS
> #
> # Last Modified: 25/01/2007
> # Modified by: ...
> #
> # 'nt-servers' host group definition
> define hostgroup{
> hostgroup_name nt-servers
> alias Servidores Windows 2K/2003
> members
> servidor01,servidor02,servidor03,servidor04,servidor05,servidor07,servidor15,servidor17,servidor30
> }
> # 'netapp_filers' host group definition
> define hostgroup{
> hostgroup_name netapp_filers
> alias Filers da NetApp [NAS]
> members servidor50,servidor51
> }
> # 'linux-boxes' host group definition
> define hostgroup{
> hostgroup_name unix-boxes
> alias Unix / Linux Servers
> members
> servidor06,servidor32,servidor49,servidor120,servidor33,servidor34
> }
> # 'rec-servers' host group definition
> define hostgroup{
> hostgroup_name rec-servers
> alias Servidor REC Video
> members servidor16
> }
>
>
> --
>
> Alguém sabe como posso resolver este problema??
> Desde já agradeço pela ajuda.
>
> Um abraço a todos.
>
>
>
>
>
> André Luís A. de Souza
> [EMAIL PROTECTED]
>
> __
> Fale com seus amigos de graça com o novo Yahoo! Messenger
> http://br.messenger.yahoo.com/
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> --
> Nagios-users-br@lists.sourceforge.net mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki



 
André Luís A. de Souza
[EMAIL PROTECTED]

 __
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users-br] Could not register hostgroup

2007-02-12 Por tôpico Andre Luis
Olá Mauro,
   
  Alterei o nome do hostgroup para "netapp-filers" e continuo tendo o mesmo 
problema. 
   
  

Mauro Rocha <[EMAIL PROTECTED]> escreveu:
  já tentou não utilizar o "_" (underline) para essa definicação?

Att.
Mauro Rocha


On 2/2/07, Andre Luis wrote:
>
> Pessoal,
>
> Estou tentando iniciar o nagios, mas estou recebendo a mensagem de erro
> abaixo:
>
>
> --
> servidorA# ./nagios -v /usr/local/nagios/etc/nagios.cfg
> Nagios 2.5
> Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
> Last Modified: 07-13-2006
> License: GPL
> Reading configuration data...
> Error: Hostgroup 'netapp_filers' has already been defined
> Error: Could not register hostgroup (config file
> '/usr/local/nagios/etc/servers/hostgroups.cfg', starting on line 16)
> ***> 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.
>
> --
>
> O arquivo hostgroups.cfg contém:
> ##
> # HOST GROUP DEFINITIONS
> #
> # Last Modified: 25/01/2007
> # Modified by: ...
> #
> # 'nt-servers' host group definition
> define hostgroup{
> hostgroup_name nt-servers
> alias Servidores Windows 2K/2003
> members
> servidor01,servidor02,servidor03,servidor04,servidor05,servidor07,servidor15,servidor17,servidor30
> }
> # 'netapp_filers' host group definition
> define hostgroup{
> hostgroup_name netapp_filers
> alias Filers da NetApp [NAS]
> members servidor50,servidor51
> }
> # 'linux-boxes' host group definition
> define hostgroup{
> hostgroup_name unix-boxes
> alias Unix / Linux Servers
> members
> servidor06,servidor32,servidor49,servidor120,servidor33,servidor34
> }
> # 'rec-servers' host group definition
> define hostgroup{
> hostgroup_name rec-servers
> alias Servidor REC Video
> members servidor16
> }
>
>
> --
>
> Alguém sabe como posso resolver este problema??
> Desde já agradeço pela ajuda.
>
> Um abraço a todos.
>
>
>
>
>
> André Luís A. de Souza
> [EMAIL PROTECTED]
>
> __
> Fale com seus amigos de graça com o novo Yahoo! Messenger
> http://br.messenger.yahoo.com/
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> --
> Nagios-users-br@lists.sourceforge.net mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki



 
André Luís A. de Souza
[EMAIL PROTECTED]

 __
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users-br] Erro no start

2007-02-12 Por tôpico Jeann Wilson
Boa tarde Ikami,

Esta configuração dos grupos e hosts vc está trazendo do Nagios versão
1 ??? Tive este mesmo problema quando realizei a migração e para
resolver isso coloquei a linha

contact_groups   nome_do_grupo

dentro do arquivo hosts.cfg

ok! Se o problema persistir me mande um email com as suas
configurações que resolve e te passo a solução ok!

Em 06/02/07, Ikami Garajau de Castilho<[EMAIL PROTECTED]> escreveu:
> Olá pessoal!
> Meu problema agora é quando tento levantar o serviço do Nagios.
> Indo diretamente no problema vou mostrar o LOG.
>
> RODANDO VERIFICAÇÃO:
> ./nagios -v /usr/local/nagios/etc/nagios.cfg
>
> Nagios 2.7
> Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
> Last Modified: 01-19-2007
> License: GPL
>
> Reading configuration data...
>
> Error: Command 'check-host-alive' has already been defined
> Error: Could not register command (config file
> '/usr/local/nagios/etc/commands.cfg', starting on line 181)
>
> ***> One or more problems was encountered while processing the config
> files...
>
> LINHA 181 DO COMMANDS.CFG
> # 'check-host-alive' command definition
> define command{
> command_namecheck-host-alive
> command_line$USER1$/check_ping -H $HOSTADDRESS$ -w
> 3000.0,80% -c 5000.0,100% -p 1
> }
>
> Se eu comento esse "DEFINE" ele dá o mesmo erro no próximo "DEFINE". Fui
> tirando todos até que não existiam mais DEFINEs e o erro dado pelo
> ./nagios -v  foi de falta desses DEFINEs.
>
> GREP NO ETC PROCURANDO POR "check-host-alive"
> grep -lri check-host-alive *
> commands.cfg
> hosts.cfg
> hosts.cfg.bkp
> localhost.cfg
>
> Dentro dos arquivos 'hosts.cfg', 'hosts.cfg.bkp' e 'localhost.cfg' o
> comando "check-host-alive" só aparece como "check_command
> check-host-alive"
>
> Não sei se a ordem dos arquivos "cfg_file" no nagios.cfg altera alguma
> coisa. Creio que sim
>
> ORDEM DOS ARQUIVOS NO NAGIOS.CFG
> # Command definitions
> cfg_file=/usr/local/nagios/etc/commands.cfg
>
> # Host and service definitions for monitoring this machine
> #cfg_file=/usr/local/nagios/etc/localhost.cfg
>
>
> # You can split other types of object definitions across several
> # config files if you wish (as done here), or keep them all in a
> # single config file.
>
> cfg_file=/usr/local/nagios/etc/contactgroups.cfg
> cfg_file=/usr/local/nagios/etc/timeperiods.cfg
> cfg_file=/usr/local/nagios/etc/contacts.cfg
> cfg_file=/usr/local/nagios/etc/dependencies.cfg
> #cfg_file=/usr/local/nagios/etc/escalations.cfg
> cfg_file=/usr/local/nagios/etc/commands.cfg
> cfg_file=/usr/local/nagios/etc/hostgroups.cfg
> cfg_file=/usr/local/nagios/etc/hosts.cfg
> cfg_file=/usr/local/nagios/etc/services.cfg
>
> # Extended host/service info definitions are now stored along with
> # other object definitions:
> #cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
> #cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg
>
> Espero que isso seja suficiente!
>
> --
> Atenciosamente,
>
> Íkami Garajau de Castilho
> STI-DSTEC
> TRT da 10° Região
> Tel.:61-3348-1280
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> --
> Nagios-users-br@lists.sourceforge.net mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>


-- 
1º Ten QOBM/Comb Jeann Wilson Aguiar Cavalcante
Chefe da Seção de Redes do CBMDF
Tel: (0xx61) 3901-8742 / Fax:(0XX61) 3901-8612
Cel: (0xx61) 8401-5749

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


[Nagios-users-br] RES: Erro no start

2007-02-12 Por tôpico Tiago Canoas A Silva
Ikami,
 
No seu arquivo nagios.cfg está configura o arquivo command.cfg duas vezes, por 
isso o erro.
 
Retira uma delas que arruma esse erro.
 
Atenciosamente,
Tiago Canoas A Silva
 



De: [EMAIL PROTECTED] em nome de Ikami Garajau de Castilho
Enviada: ter 6/2/2007 10:37
Para: [EMAIL PROTECTED]
Assunto: [Nagios-users-br] Erro no start



Olá pessoal!
Meu problema agora é quando tento levantar o serviço do Nagios.
Indo diretamente no problema vou mostrar o LOG.

RODANDO VERIFICAÇÃO:
./nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios 2.7
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org 
 )
Last Modified: 01-19-2007
License: GPL

Reading configuration data...

Error: Command 'check-host-alive' has already been defined
Error: Could not register command (config file
'/usr/local/nagios/etc/commands.cfg', starting on line 181)

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

LINHA 181 DO COMMANDS.CFG
# 'check-host-alive' command definition
define command{
command_namecheck-host-alive
command_line$USER1$/check_ping -H $HOSTADDRESS$ -w
3000.0,80% -c 5000.0,100% -p 1
}

Se eu comento esse "DEFINE" ele dá o mesmo erro no próximo "DEFINE". Fui
tirando todos até que não existiam mais DEFINEs e o erro dado pelo
./nagios -v  foi de falta desses DEFINEs.

GREP NO ETC PROCURANDO POR "check-host-alive"
grep -lri check-host-alive *
commands.cfg
hosts.cfg
hosts.cfg.bkp
localhost.cfg

Dentro dos arquivos 'hosts.cfg', 'hosts.cfg.bkp' e 'localhost.cfg' o
comando "check-host-alive" só aparece como "check_command   
check-host-alive"

Não sei se a ordem dos arquivos "cfg_file" no nagios.cfg altera alguma
coisa. Creio que sim

ORDEM DOS ARQUIVOS NO NAGIOS.CFG
# Command definitions
cfg_file=/usr/local/nagios/etc/commands.cfg

# Host and service definitions for monitoring this machine
#cfg_file=/usr/local/nagios/etc/localhost.cfg


# You can split other types of object definitions across several
# config files if you wish (as done here), or keep them all in a
# single config file.

cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/dependencies.cfg
#cfg_file=/usr/local/nagios/etc/escalations.cfg
cfg_file=/usr/local/nagios/etc/commands.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/services.cfg

# Extended host/service info definitions are now stored along with
# other object definitions:
#cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
#cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg

Espero que isso seja suficiente!

--
Atenciosamente,

Íkami Garajau de Castilho
STI-DSTEC
TRT da 10° Região
Tel.:61-3348-1280


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki