monit-general
[Top][All Lists]
Advanced

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

Re: Customer Alert


From: Mark Olliver
Subject: Re: Customer Alert
Date: Wed, 6 Oct 2010 13:27:01 +0100

Hi Martin,

It would be great if the alert logic could be altered so that we have a choice of email or exec'ing a script as i would love to be able to have monit doing the checking and then passing the results over to be actioned and logged.

Regards

Mark

On 6 October 2010 10:41, Martin Pala <address@hidden> wrote:
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




reply via email to

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