[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customer Alert
From: |
Martin Pala |
Subject: |
Re: Customer Alert |
Date: |
Wed, 6 Oct 2010 11:41:03 +0200 |
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
- Re: Customer Alert, Martin Pala, 2010/10/01
- Re: Customer Alert, Mark Olliver, 2010/10/05
- Re: Customer Alert, Martin Pala, 2010/10/05
- Re: Customer Alert, Mark Olliver, 2010/10/06
- Re: Customer Alert,
Martin Pala <=
- Re: Customer Alert, Mark Olliver, 2010/10/06
- Re: Customer Alert, Jan-Henrik Haukeland, 2010/10/06
- Re: Customer Alert, Mark Olliver, 2010/10/06
- Re: Customer Alert, Jan-Henrik Haukeland, 2010/10/06
- Re: Customer Alert, Mark Olliver, 2010/10/07
- Re: Customer Alert, Martin Pala, 2010/10/07
- Re: Customer Alert, Mark Olliver, 2010/10/07
- Re: Customer Alert, Martin Pala, 2010/10/08
- Re: Customer Alert, Mark Olliver, 2010/10/11
- Re: Customer Alert, Eric Pailleau, 2010/10/11