|
From: Tiago C. A S. <tia...@AS...> - 2007-02-06 18:27:01
|
Ikami, =20 No seu arquivo nagios.cfg est=E1 configura o arquivo command.cfg duas = vezes, por isso o erro. =20 Retira uma delas que arruma esse erro. =20 Atenciosamente, Tiago Canoas A Silva =20 ________________________________ De: nag...@li... em nome de Ikami = Garajau de Castilho Enviada: ter 6/2/2007 10:37 Para: nag...@li.... Assunto: [Nagios-users-br] Erro no start Ol=E1 pessoal! Meu problema agora =E9 quando tento levantar o servi=E7o do Nagios. Indo diretamente no problema vou mostrar o LOG. RODANDO VERIFICA=C7=C3O: ./nagios -v /usr/local/nagios/etc/nagios.cfg Nagios 2.7 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org = <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=E1 o mesmo erro no pr=F3ximo "DEFINE". = Fui tirando todos at=E9 que n=E3o 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=F3 aparece como "check_command =20 check-host-alive" N=E3o 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=3D/usr/local/nagios/etc/commands.cfg # Host and service definitions for monitoring this machine #cfg_file=3D/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=3D/usr/local/nagios/etc/contactgroups.cfg cfg_file=3D/usr/local/nagios/etc/timeperiods.cfg cfg_file=3D/usr/local/nagios/etc/contacts.cfg cfg_file=3D/usr/local/nagios/etc/dependencies.cfg #cfg_file=3D/usr/local/nagios/etc/escalations.cfg cfg_file=3D/usr/local/nagios/etc/commands.cfg cfg_file=3D/usr/local/nagios/etc/hostgroups.cfg cfg_file=3D/usr/local/nagios/etc/hosts.cfg cfg_file=3D/usr/local/nagios/etc/services.cfg # Extended host/service info definitions are now stored along with # other object definitions: #cfg_file=3D/usr/local/nagios/etc/hostextinfo.cfg #cfg_file=3D/usr/local/nagios/etc/serviceextinfo.cfg Espero que isso seja suficiente! -- Atenciosamente, =CDkami Garajau de Castilho STI-DSTEC TRT da 10=B0 Regi=E3o 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 -- Nag...@li... mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki |