problema com o nagios

1. problema com o nagios

tiago miguel banowits
tiagoban

(usa Ubuntu)

Enviado em 02/09/2011 - 13:58h

Quando vou inicar o nagios, aparece a mensagem:
Starting nagios:CONFIG ERROR! Start Aborted

Dentro do nagios tem esse log:

Program End[09-01-2011 20:17:26] Bailing out due to errors encountered while trying to initialize the external command file... (PID=20836)
Informational Message[09-01-2011 20:17:26] Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (2) -> No such file or directory. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file.
Informational Message[09-01-2011 20:17:26] Finished daemonizing... (New PID=20836)
Informational Message[09-01-2011 20:17:26] LOG VERSION: 2.0
Informational Message[09-01-2011 20:17:26] Local time is Thu Sep 01 20:17:26 BRT 2011
Program Start[09-01-2011 20:17:26] Nagios 3.0.6 starting... (PID=20835)


  


2. Re: problema com o nagios

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 02/09/2011 - 14:04h

use o comando
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
e ve se aparece algum erro


3. Re: problema com o nagios

Samuel Costa
tudor

(usa Outra)

Enviado em 02/09/2011 - 14:14h

E retorna pra nós a saída do comando ok!?

:D


4. segue

tiago miguel banowits
tiagoban

(usa Ubuntu)

Enviado em 02/09/2011 - 14:24h

Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 1298 (UNKNOWN VARIABLE)

Dentro do nagios.cfg

a linha 1298 esta:

authorized_for_system_information=tiago





5. continuando..

tiago miguel banowits
tiagoban

(usa Ubuntu)

Enviado em 02/09/2011 - 14:34h

Bom comentei "#" aquela linha e o erro passou a ser outro:


Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Error: Service check command 'check_ping' specified in service 'PING' for host 'Tiago' not defined anywhere!
Error: Contact group 'admins' specified in service 'PING' for host 'Tiago' is not defined anywhere!
Error: Service check command 'check_ping' specified in service 'PING' for host 'cliente1' not defined anywhere!
Error: Contact group 'admins' specified in service 'PING' for host 'cliente1' is not defined anywhere!
Error: Service check command 'check_local_load' specified in service 'Current Load' for host 'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Load' for host 'localhost' is not defined anywhere!
Error: Service check command 'check_local_users' specified in service 'Current Users' for host 'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Users' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'HTTP' for host 'localhost' is not defined anywhere!
Error: Service check command 'check_ping' specified in service 'PING' for host 'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'PING' for host 'localhost' is not defined anywhere!
Error: Service check command 'check_local_disk' specified in service 'Root Partition' for host 'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'Root Partition' for host 'localhost' is not defined anywhere!
Error: Service check command 'check_ssh' specified in service 'SSH' for host 'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'SSH' for host 'localhost' is not defined anywhere!
Error: Service check command 'check_local_swap' specified in service 'Swap Usage' for host 'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'Swap Usage' for host 'localhost' is not defined anywhere!
Error: Service check command 'check_local_procs' specified in service 'Total Processes' for host 'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'Total Processes' for host 'localhost' is not defined anywhere!
Error: Service check command 'check_nt' specified in service 'C:\ Drive Space' for host 'winserver' not defined anywhere!
Error: Contact group 'admins' specified in service 'C:\ Drive Space' for host 'winserver' is not defined anywhere!
Error: Service check command 'check_nt' specified in service 'CPU Load' for host 'winserver' not defined anywhere!
Error: Contact group 'admins' specified in service 'CPU Load' for host 'winserver' is not defined anywhere!
Error: Service check command 'check_nt' specified in service 'Explorer' for host 'winserver' not defined anywhere!
Error: Contact group 'admins' specified in service 'Explorer' for host 'winserver' is not defined anywhere!
Error: Service check command 'check_nt' specified in service 'Memory Usage' for host 'winserver' not defined anywhere!
Error: Contact group 'admins' specified in service 'Memory Usage' for host 'winserver' is not defined anywhere!
Error: Service check command 'check_nt' specified in service 'NSClient++ Version' for host 'winserver' not defined anywhere!
Error: Contact group 'admins' specified in service 'NSClient++ Version' for host 'winserver' is not defined anywhere!
Error: Service check command 'check_nt' specified in service 'Uptime' for host 'winserver' not defined anywhere!
Error: Contact group 'admins' specified in service 'Uptime' for host 'winserver' is not defined anywhere!
Error: Service check command 'check_nt' specified in service 'W3SVC' for host 'winserver' not defined anywhere!
Error: Contact group 'admins' specified in service 'W3SVC' for host 'winserver' is not defined anywhere!
Checked 17 services.
Checking hosts...
Error: Host check command 'check_host_alive' specified for host 'Tiago' is not defined anywhere!
Error: Contact group 'admins' specified in host 'Tiago' is not defined anywhere!
Error: Host check command 'check-host-alive' specified for host 'cliente1' is not defined anywhere!
Error: Contact group 'admins' specified in host 'cliente1' is not defined anywhere!
Error: Notification period 'workhours' specified for host 'cliente1' is not defined anywhere!
Error: Host check command 'check-host-alive' specified for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in host 'localhost' is not defined anywhere!
Error: Notification period 'workhours' specified for host 'localhost' is not defined anywhere!
Error: Host check command 'check-host-alive' specified for host 'winserver' is not defined anywhere!
Error: Contact group 'admins' specified in host 'winserver' is not defined anywhere!
Checked 4 hosts.
Checking host groups...
Checked 2 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Error: Service notification command 'notify-by-email' specified for contact 'tiago' is not defined anywhere!
Error: Host notification command 'host-notify-by-email' specified for contact 'tiago' is not defined anywhere!
Checked 1 contacts.
Checking contact groups...
Checked 0 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 3 commands.
Checking time periods...
Checked 1 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: 45

***> One or more problems was encountered while running the pre-flight check...

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.




6. Re: problema com o nagios

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 02/09/2011 - 14:37h

voce instalou o nagios-plugins ?
como voce instalou o nagios ?


7. nagios

tiago miguel banowits
tiagoban

(usa Ubuntu)

Enviado em 02/09/2011 - 15:31h

fiz a instalação baseado neste artigo http://www.dicas-l.com.br/arquivo/configurando_o_nagios_3_no_debian_lenny.php

e também #apt-get install nagios-plugins


8. Re: problema com o nagios

Samuel Costa
tudor

(usa Outra)

Enviado em 02/09/2011 - 18:07h

Amigo,

Creio que você efetuou duas instações, uma você compilou manualmente e a outra fez pelo apt-get, correto?

Att.;


9. nagios

tiago miguel banowits
tiagoban

(usa Ubuntu)

Enviado em 02/09/2011 - 19:27h

realmente, acredito ter feito 2 instalações. Sabe como posso corrigir?


10. Re: problema com o nagios

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 02/09/2011 - 19:30h

#apt-get remove nagios3


11. continuando..

tiago miguel banowits
tiagoban

(usa Ubuntu)

Enviado em 02/09/2011 - 20:15h

o sistema nao deixa remover


12. Re: problema com o nagios

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 02/09/2011 - 20:16h

qual o erro que ocorre ?



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts