Re: Atrasar notificação
Flavio Junior <[email protected]>
| Newsgroups | gmane.network.nagios.user.brazil |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Veja:
define service{
host_name proxy
service_description DNS
...
normal_check_interval 5
retry_check_interval 1
max_check_attempts 5
...
}
normal_check_interval specifies at what interval Nagios should check
the corresponding service as long as the state is OK or if a hard
state exists--in this case, every five minutes. retry_check_interval
defines the interval between two service checks during a soft
state--one minute in the example. If a new error occurs, then Nagios
will take a closer look at the service at shorter intervals.
max_check_attempts determines how often the service check is to be
repeated after an error has first occurred. If max_check_attempts has
been reached and if the error state continues, Nagios inspects the
service again at the intervals specified in normal_check_interval.
Figure 4.4 represents the chronological progression in graphic form:
the illustration begins with an OK state (which is always a hard
state). Normally Nagios will repeat the service check at five-minute
intervals. After ten minutes an error occurs; the state changes to
CRITICAL, but this is initially a soft state. At this point in time,
Nagios has not yet issued any message.
Now the system checks the service at intervals specified in
retry_check_interval, here this is every minute. After a total of
five checks (max_check_attempts) with the same result, the state
changes from soft to hard. Only now does Nagios inform the relevant
people. The tests are now repeated at the intervals specified in
normal_check_interval.
Fonte: http://www.linuxjournal.com/article/9245
Resumão:
Qdo for detectado um problema, o nagios vai checar novamente
"$max_check_attempts" vezes a cada "$retry_check_interval", se a saida
não mudar, ou seja, ainda estiver com problema, o estado do serviço
muda pra HARD e então a notificação é enviada.
- --
Flavio do Carmo Junior aka waKKu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: http://getfiregpg.org
iEYEARECAAYFAkmscZwACgkQgyuXjr6dykvcaQCdHepkWlio7fzhdy0MfQ5Q7Y5o
D9QAn1jm6Q331WXL74+hSdBJEWLSHpmh
=D3gj
-----END PGP SIGNATURE-----
2009/3/2 Cleiton Souza <[email protected]>:
> Olá pessoal, boa tarde!
>
> Dentre varios equipamentos que o nagios monitora no meu ambiente, ele esta
> monitorando um servidor na Internet.
> Meu problema é que as vezes o servidor demora de responder o ping e o nagios
> já me envia uma notificação dizendo que o servidor esta fora, mas na
> realidade só foi um aumento momentaneo de latencia devido a este servidor
> esta conectado via DSL na Internet.
>
> Gostaria de atrasar o envio da notificação para que o nagios só me envie a
> notificação quando depois de uns 2 ou 3 check, a latencia realmente estiver
> alta.
>
> Procurei sobre isso, mas nao consegui achar aonde configuro, alguem pode me
> ajudar?
>
> Desde já, agradeço muito!
>
> Cleiton Souza
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> --
> [email protected] mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
--
[email protected] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki