monit-general
[Top][All Lists]
Advanced

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

Re: Check Host in MONIT


From: Martin Pala
Subject: Re: Check Host in MONIT
Date: Mon, 11 Apr 2011 15:23:23 +0200

Yes, this setup is possible - the recovery/succeeded action will be executed 
only on failure->success change however (if the service was up when monit 
started, no action is done). You can check logs to see whether the action was 
executed on service recovery.

Regards,
Martin

On Apr 10, 2011, at 3:16 PM, Paul Sun wrote:

> Hi 
> 
> I would like to know whether monit support to action if the check host
> is success? I tried below configuration, but doesn't seems work
> 
> - PS
> 
>  check host SERVER1 with address 10.219.35.80
>    if failed icmp type echo count 3 with timeout 3 seconds then alert
>    if failed port 2054 then exec "/user/scripts/set_alarm.sh"
>        else if succeeded then exec "/user/scripts/clear_alarm.sh"
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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