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_name    check-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

Responder a