[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Email alert formating
From: |
hans |
Subject: |
Re: Email alert formating |
Date: |
Mon, 28 Nov 2005 16:44:21 -0300 |
EXCELLENT!
Thanks Martin!
On 11/28/05, Martin Pala <address@hidden> wrote:
> Hi,
>
> it is fixed in cvs now ... new $DESCRIPTION macro was added for
> MAIL-FORMAT, the default alert message now expands to (example):
>
> --8<--
> Does not exist Service mysql
>
> Date: Mon, 28 Nov 2005 17:24:05 +0100
> Action: restart
> Host: unicorn
> Description: 'mysql' process is not running
>
> Your faithful employee,
> monit
> --8<--
>
> where the "Description:" line is the new one, using the $DESCRIPTION
> macro. The description is no more added to the message bottom => it is
> possible to suppress it by the standard MAIL-FORMAT { MESSAGE: ...}
> option now.
>
> Martin
>
> Rishikesh Dongre wrote:
> > Hi Hans,
> >
> > If i take your example, is is possible to remove last line from your email
> > alert.
> > Eg. The last line your email alert is -
> > 'tomcat' process is running with pid 3161
> >
> > which should not be come.
> >
> >
> > Please suggest.
> >
> > Thanks,
> > rishi
> >
> >
> > -----Original Message-----
> > From: address@hidden
> > [mailto:address@hidden Behalf
> > Of hans
> > Sent: Wednesday, November 23, 2005 9:34 PM
> > To: This is the general mailing list for monit
> > Subject: Re: Email alert formating
> >
> >
> > I user this, so a can get all the msg in cell phone, is a nice format.
> > in /etc/monitrc
> > set mail-format {from: address@hidden
> > subject: $SERVICE $EVENT at $DATE
> > message: Monit $ACTION $SERVICE on $HOST.}
> >
> > msg result:
> > Monit alert tomcat on www.server.com.ar.
> > 'tomcat' process is running with pid 3161
> >
> > On 11/23/05, Rishikesh Dongre <address@hidden> wrote:
> >
> >>Hi All,
> >>
> >>I want to remove a line from mail alert which comes after
> >>
> >>Your faithful employee,
> >>monit
> >>
> >>The same is logged in /var/adm/messages file.
> >>
> >>Please suggest.
> >>
> >>Many thanks in advance.
> >>
> >>Regards,
> >>rishi
> >>
> >>This email with all infomation contained herein or attached hereto may
> >>contain confidential and/or privileged information intended for the
> >>addressee(s) only. If you have received this email in error, please contact
> >>the sender and immediately delete this email in its entirety and any
> >>attachments thereto.
> >>
> >>This email with all information contained herein or attached hereto may
> >>contain confidential and/or privileged information intended for the
> >>addressee(s) only. If you have received this email in error, please contact
> >>the sender and immediately delete this email in its entirety and any
> >>attachments thereto.
> >>
> >>
> >>--
> >>To unsubscribe:
> >>http://lists.nongnu.org/mailman/listinfo/monit-general
> >>
> >
> >
> >
> > --
> > -------------------------------------------------------------------------------------------------------------
> > /"\ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> > \ / ASCII Ribbon Campaign . Windows: "Where do you want to go today?"
> > X - NO HTML/RTF in e-mail . Linux: "Where do you want to go tomorrow?"
> > / \ - NO Word docs in e-mail . BSD: "Are you guys coming or what?"
> > -------------------------------------------------------------------------------------------------------------
> >
> >
> > --
> > To unsubscribe:
> > http://lists.nongnu.org/mailman/listinfo/monit-general
> >
> > This email with all infomation contained herein or attached hereto may
> > contain confidential and/or privileged information intended for the
> > addressee(s) only. If you have received this email in error, please contact
> > the sender and immediately delete this email in its entirety and any
> > attachments thereto.
> >
> > This email with all information contained herein or attached hereto may
> > contain confidential and/or privileged information intended for the
> > addressee(s) only. If you have received this email in error, please contact
> > the sender and immediately delete this email in its entirety and any
> > attachments thereto.
> >
> >
> > --
> > To unsubscribe:
> > http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
--
-------------------------------------------------------------------------------------------------------------
/"\ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
\ / ASCII Ribbon Campaign . Windows: "Where do you want to go today?"
X - NO HTML/RTF in e-mail . Linux: "Where do you want to go tomorrow?"
/ \ - NO Word docs in e-mail . BSD: "Are you guys coming or what?"
-------------------------------------------------------------------------------------------------------------