Re: Delay em notificação e check

Jose Oliveira <[email protected]>
Newsgroups gmane.network.nagios.user.brazil
Message-ID <[email protected]>
Olá

Como o seu chack_interval está 3 e o interval_length está 60, o nagios tenta
executar cada verificação de tres em tres minutos...

Veja e nos informe como está a latencia do seu nagios, e o consumo de CPU e
i/o do servidor. Se a latencia estiver alta, é por causa de um destes
dois...

No proprio detalhe do serviço voce pode ver isto, se clicar no serviço e
verificar o campo "latency". O ideal é < que 1 segundo...

[]s
Jotagera



2009/3/24 Alexander Queiroz <[email protected]>

> Boa noite,
> Pessoal gostaria de receber alguma dica para deixar o nagios checando
> instântaneo pois quando um host
> cai, demora cerca de 10minutos para atualizar que o host está down e isso
> vem me causando problemas
> pois tenho que praticamente monitorar a ferramenta de monitoramento.
> Segue abaixo meu arquivo de configuração
> nagios.cfg
> =====================================================
> cfg_file=/etc/nagios/hosts.cfg
> cfg_file=/etc/nagios/services.cfg
> cfg_file=/etc/nagios/misccommands.cfg
> cfg_file=/etc/nagios/checkcommands.cfg
> cfg_file=/etc/nagios/contactgroups.cfg
> cfg_file=/etc/nagios/contacts.cfg
> cfg_file=/etc/nagios/hostgroups.cfg
> cfg_file=/etc/nagios/servicegroups.cfg
> cfg_file=/etc/nagios/timeperiods.cfg
> cfg_file=/etc/nagios/escalations.cfg
> cfg_file=/etc/nagios/dependencies.cfg
> cfg_file=/etc/nagios/hostextinfo.cfg
> cfg_file=/etc/nagios/serviceextinfo.cfg
> cfg_file=/etc/nagios/meta_commands.cfg
> cfg_file=/etc/nagios/meta_contact.cfg
> cfg_file=/etc/nagios/meta_contactgroup.cfg
> cfg_file=/etc/nagios/meta_dependencies.cfg
> cfg_file=/etc/nagios/meta_escalations.cfg
> cfg_file=/etc/nagios/meta_host.cfg
> cfg_file=/etc/nagios/meta_hostgroup.cfg
> cfg_file=/etc/nagios/meta_services.cfg
> cfg_file=/etc/nagios/meta_timeperiod.cfg
> resource_file=/etc/nagios/resource.cfg
> log_file=/var/log/nagios/nagios.log
> temp_file=/var/log/nagios/nagios.tmp
> status_file=/var/log/nagios/status.dat
> aggregate_status_updates=1
> status_update_interval=15
> nagios_user=nagios
> nagios_group=nagios
> enable_notifications=1
> execute_service_checks=1
> accept_passive_service_checks=1
> enable_event_handlers=1
> log_rotation_method=d
> log_archive_path=/var/log/nagios/archives/
> check_external_commands=1
> command_check_interval=1s
> command_file=/var/log/nagios/rw/nagios.cmd
> downtime_file=/var/log/nagios/downtime.log
> comment_file=/var/log/nagios/comment.log
> lock_file=/var/log/nagios/nagios.pid
> retain_state_information=1
> state_retention_file=/var/log/nagios/status.sav
> retention_update_interval=180
> use_retained_program_state=1
> use_syslog=0
> log_notifications=1
> log_service_retries=1
> log_host_retries=1
> log_event_handlers=1
> log_initial_states=1
> log_external_commands=1
> sleep_time=0.1
> service_inter_check_delay_method=n
> host_inter_check_delay_method=1
> service_interleave_factor=s
> max_concurrent_checks=0
> max_service_check_spread=1
> max_host_check_spread=2
> service_reaper_frequency=2
> interval_length=60
> auto_reschedule_checks=1
> auto_rescheduling_interval=10
> auto_rescheduling_window=15
> use_agressive_host_checking=1
> enable_flap_detection=0
> low_service_flap_threshold=25.0
> high_service_flap_threshold=50.0
> low_host_flap_threshold=25.0
> high_host_flap_threshold=50.0
> soft_state_dependencies=0
> service_check_timeout=20
> host_check_timeout=15
> event_handler_timeout=30
> notification_timeout=60
> ocsp_timeout=1
> perfdata_timeout=5
> obsess_over_services=1
> obsess_over_hosts=1
> process_performance_data=1
> service_perfdata_command=process-service-perfdata
> service_perfdata_file=/var/log/nagios/service-perfdata
> check_for_orphaned_services=1
> check_service_freshness=1
> service_freshness_check_interval=60
> check_host_freshness=0
> host_freshness_check_interval=60
> date_format=us
> illegal_object_name_chars=~!$%^&*"|'<>?,()=
> illegal_macro_output_chars=`~$^&"|'<>
> admin_email=admin
> admin_pager=admin@localhost
> broker_module=/usr/lib/nagios/ndomod.o config_file=/etc/nagios/ndomod.cfg
> event_broker_options=-1
> =========================================================
>
> Um host para monitoramento;
> define host{
>  host_name   Firewall_01
>  alias    Firewall
>  address    192.168.70.1
>  hostgroups   DATACENTER, Firewalls
>  check_command   check_host_alive
>  max_check_attempts   1
>  check_interval   3
>  active_checks_enabled  1
>  passive_checks_enabled  0
>  check_period   24x7
>  contact_groups   Server_Alertas_N1
>  notification_interval  0
>  notification_period  24x7
>  notification_options  d,u,r
>  notifications_enabled  1
>  stalking_options   o,d,u
> }
>
>
> Grato por qualquer colaboração.
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> --
> [email protected] mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>



-- 
Abraços
JGeraldo
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-- 
[email protected] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.