monit-general
[Top][All Lists]
Advanced

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

Re: [monit] ability to check multiple hosts


From: Martin Pala
Subject: Re: [monit] ability to check multiple hosts
Date: Tue, 22 Nov 2011 18:18:25 +0100

Yes, but you need to expand each host into standalone "check host" statement, 
like this:

--8<--
check host myhost1 with address 192.168.0.1
    if failed icmp type echo count 5 with timeout 15 seconds then alert

check host myhost2 with address 192.168.0.2
    if failed icmp type echo count 5 with timeout 15 seconds then alert

...
--8<--

Regards,
Martin


On Nov 22, 2011, at 5:06 PM, Vladimir Shun'kov wrote:

> Hello all,
> 
> Is there a way to icmp check several hosts. Something look like that:
> 
> check host myhost.com, myhost1.com myhost2.com ... with address
> 192.168.0.1, 192.168.0.2, 192.168.0.3 ...
>       if failed icmp type echo count 5 with timeout 15 seconds then alert
> 
> Thanks.
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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