monit-general
[Top][All Lists]
Advanced

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

Re: mail-format local


From: Martin Pala
Subject: Re: mail-format local
Date: Thu, 29 Jan 2015 18:29:54 +0100

Hello,

you can set the format locally:

check program liveStatus with path /usr/bin/false
   if status != 0 then alert
   alert address@hidden with mail-format {
      from: address@hidden
      subject: KSR alert --  $EVENT $SERVICE
      message: My Live Status Cehck. Monit is alive!
   } and reminder on 1 cycle
   group Live_Status

Regards,
Martin


> On 29 Jan 2015, at 11:56, Kizito Porta BalanyĆ  <address@hidden> wrote:
> 
> Hello,
> 
> Is it possible to define an alert mail-format locally?
> Something like the following:
> 
> check program liveStatus with path /usr/bin/false
>    if status != 0 then alert
> 
>    set alert address@hidden with reminder on 1 cycle
>    set mail-format {
>       from: address@hidden
>       subject: KSR alert --  $EVENT $SERVICE
>       message: My Live Status Cehck. Monit is alive!
>    }
>    group Live_Status
> 
> The idea is overwrite the mail-format headers, create custom messages, ....
> 
> Thanks a lot.
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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