Hello,

you can set the format locally:

check program liveStatus with path /usr/bin/false
   if status != 0 then alert
   alert [email protected] with mail-format {
      from: KSR@$HOST
      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Ć  <[email protected]> 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 [email protected] with reminder on 1 cycle
>    set mail-format {
>       from: KSR@$HOST
>       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


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to