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
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general