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: Vladimir Shun'kov
Subject: Re: [monit] ability to check multiple hosts
Date: Wed, 23 Nov 2011 16:36:59 +0200

Grat!
Thank you for your helping!

Regards,
Vladimir

2011/11/22 Martin Pala <address@hidden>:
> The combination like this is ot supported currently - you can create custom 
> script which will return error if the ping of all hosts failed and integrate 
> it with monit's "check program" test:
>
>   check program ping_myhosts with path /usr/local/bin/ping_myhosts.sh"
>      if status != 0 then alert
>
> Regards,
> Martin
>
>
> On Nov 22, 2011, at 9:12 PM, Vladimir Shun'kov wrote:
>
>> Thank you Martin for your answer.
>>
>> But I'm searching ability to send alert in case if both hosts is down.
>> Is it possible to combine both tests together?
>>
>> Thanks,
>> Vladimir.
>>
>> 2011/11/22 Martin Pala <address@hidden>:
>>> 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
>>>
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>



reply via email to

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