monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit] How to test that Internet is really up ?


From: Eric Pailleau
Subject: [monit] How to test that Internet is really up ?
Date: Mon, 18 May 2009 18:01:11 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090330)

Dear all,

surely as many other monit users,
I test that Internet is up and running by doing a ICMP echo (ping) on 
www.google.?? ('fr' in my case).

But it does not means that Internet is really down if Google is down (it 
happened once and can occurs ...).

My idea is to test several ip addresses with AND function...

Not easy to do this with 'depends on' : I did a trick by touching files on disk 
with start/stop command
when ICMP echo fails... but it is neither smart nor simple.

It would be great to test directly several adresses in same process, or to be 
able to create
virtual groups of processes with AND (and even OR ?) statements.
-----------------------------------------------------------------------
Exemple1 :
check hostpool internet with address www.google.fr AND www.microsoft.fr AND 
www.yahoo.com
    if failed icmp type echo count 5 with timeout 30 seconds
        then alert
-----------------------------------------------------------------------

Example2 :
---------------------------------------------------------------------
check host internet1 with address www.google.fr
    if failed icmp type echo count 5 with timeout 30 seconds
        then alert


check host internet2 with address www.microsoft.fr
    if failed icmp type echo count 5 with timeout 30 seconds
        then alert

check host internet3 with address www.yahoo.com
    if failed icmp type echo count 5 with timeout 30 seconds
        then alert

check pool internet depends on internet1 and internet2 and internet3
----------------------------------------------------------------------

I think example 2 would be easier to do because it does not modify current 
'check host' test,
and only (hum...) add a 'check pool' statement in yacc files...

Thanks for looking at this request in futur ?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]