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
<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
--
[email protected] 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
--
[email protected] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki