Serviço do Nagios parando constantemente.

1. Serviço do Nagios parando constantemente.

Ivan
kamuibf

(usa Outra)

Enviado em 08/10/2013 - 09:42h

Bom dia pessoal,

Tenho um servidor que está executando o Nagios, ele estava funcionando perfeitamente até ontem, quando simplesmente o serviço do Nagios parou e não iniciava mais. Após várias tentativas de iniciar o serviço, conseguimos. O que fizemos foi limpar um arquivo chamado: Checkresults, que fica no diretório /usr/local/nagios/var/spool/.

Hoje ao chegar na empresa, vi que o Nagios estava parado novamente, tentei reiniciar o serviço, mas ele para novamente após uns 30 segundos em execução. Já reiniciamos o servidor, removemos alguns arquivos temporários e tudo o que estava ao nosso alcance.

Quando tentamos iniciar o serviço ele gera a seguinte mensagem:

[root@Nagios log]# service nagios start

Starting nagios:/etc/init.d/nagios: line 126: 2634 Falha de segmentação $NagiosBin -d $NagiosCfgFile
done.

Eu sou novato em Linux, estou aprendendo agora e gostaria de saber se alguém consegue me dar uma força.

Obrigado!





  


2. Re: Serviço do Nagios parando constantemente.

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 08/10/2013 - 09:49h

bom o nagios tem um modo debug para verificar se as configuraçaões estão ok

verifica isso
como por exemplo

/usr/bin/nagios -v /etc/nagios/nagios.cfg




3. Re: Serviço do Nagios parando constantemente.

Ivan
kamuibf

(usa Outra)

Enviado em 08/10/2013 - 09:58h

Segue a saída do comando:

[root@Nagios log]# /usr/bin/nagios -v /etc/nagios/nagios.cfg
-bash: /usr/bin/nagios: Arquivo ou diretório não encontrado

[root@Nagios log]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/services.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/wifi.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/switch.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/printer.cfg'...
Processing object config directory '/usr/local/nagios/etc/check_mk.d'...
Processing object config file '/usr/local/nagios/etc/check_mk.d/check_mk_templates.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Checked 467 services.
Checking hosts...
Checked 165 hosts.
Checking host groups...
Checked 13 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 4 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 99 commands.
Checking time periods...
Checked 6 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
[root@Nagios log]# clear
[root@Nagios log]# clear
[root@Nagios log]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/services.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/wifi.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/switch.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/printer.cfg'...
Processing object config directory '/usr/local/nagios/etc/check_mk.d'...
Processing object config file '/usr/local/nagios/etc/check_mk.d/check_mk_templates.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Checked 467 services.
Checking hosts...
Checked 165 hosts.
Checking host groups...
Checked 13 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 4 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 99 commands.
Checking time periods...
Checked 6 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts