|
From: | Mark Olliver |
Subject: | Re: Customer Alert |
Date: | Wed, 6 Oct 2010 13:27:01 +0100 |
Currently only one action is supported now. There is possible workaround (although not very nice), by restarting the service using monit CLI from exec action:
if failed host localhost port 80 exec "/bin/bash -c '/usr/bin/monit restart myservice && /usr/local/bin/alert $SERVICE'"
The fixing of Monit configuration language for cases like this is in progress.
Regards,
Martin
On Oct 6, 2010, at 11:21 AM, Mark Olliver wrote:
> Hi,
>
> Ok, can i do two actions should a service fail, I dont see and AND clause in the docs.
>
> I.e
>
> if failed host localhost port 80 then restart and exec "/usr/local/bin/alert $SERVICE"
>
> Regards
>
> Mark
[Prev in Thread] | Current Thread | [Next in Thread] |