Bom no arquivo checkcomands.cfg crie:

# Command check_sat_ping adds a little delay for satallite pings
# 'check_ping' command definition
define command{
        command_name    check_sat_ping
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c
$ARG2$

e arquivo Services vc pode colocar algo assim:
define service{

        host_name                       host
        service_description             SAT-PING
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              2
        normal_check_interval           1
        retry_check_interval            1
        contact_groups                  nagios-admins,support
        notification_interval           120
        notification_period             24x7
        notification_options            c,r
        check_command                   check_sat_ping!700.0,20%!900.0,60%
        }

blz?
Fernando Lima
Schlumberger
Security Engineer
[EMAIL PROTECTED]

Office: +55 21 3824 6954
Mobile. : +55 21 9888 9046
(GMT: -03:00)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Alysson
Dias
Sent: Tuesday, August 09, 2005 10:31 AM
To: Lista-Nagios (E-mail)
Subject: [Nagios-users-br] alerta no ping



Pessoal

Por favor, alguem poderia me ajudar a configurar o alerta (por e-mail) do
ping ?
É que nós temos vários links pra fora da rede, e alguns são realmente lentos
dependendo do horário.
Não chega a perder pacote, mas qualquer demora na resposta do ping como
200ms ou 500ms  ele ja ta mandando um e-mail.

Eu gostaria de enviar e-mail apenas se ele realmente perder pacote ou o link
estiver down.

Muito obrigado





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users-br mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Archives: http://www.mail-archive.com/[email protected]/
http://news.gmane.org/gmane.network.nagios.user.brazil

Responder a