Hi Martin,
I tested 5.4 just now, it works exactly as what you said! Very nice!
Will install monit 5.4 on production now.
Thank you very much!
Regards,
Yongkun
From: Martin Pala < address@hidden>
Reply-To: This is the general mailing list for monit < address@hidden>
Date: 2012年9月13日木曜日 17:05
To: This is the general mailing list for monit < address@hidden>
Subject: Re: Merge alerts into one email within one cycle for the same service
The aggregation of content match events in one cycle is implicit (no need for configuration).
If the pattern matches 50 lines in one cycle:
Monit < 5.4 sent 50 emails
Monit >= 5.4 sends only one email which describes the multiline match
Regards,
Martin
On Sep 13, 2012, at 10:01 AM, "Wang, Yongkun | Yongkun | BDD" < address@hidden> wrote:
Hi Martin,
Thank you very much for the help.
I read the document and didn't find how to config it to aggregate the event in one cycle.
Maybe I missed something. Will try to read it more carefully.
If you have some examples, could you please share it? Thanks again.
Regards,
Yongkun
From: Martin Pala < address@hidden>
Reply-To: This is the general mailing list for monit < address@hidden>
Date: 2012年9月12日水曜日 20:01
To: This is the general mailing list for monit < address@hidden>
Subject: Re: Merge alerts into one email within one cycle for the same service
Yet one note - the alert aggregation of the file content test is implemented in Monit already since version 5.4 ... changelog excerpt:
--8<--
* The content match test now sends one event per cycle and pattern.
Even if there are multiple lines matching the same pattern, only
one event will be generated.
--8<--
=> the monit upgrade should fix your problem.
The alert aggregation in M/Monit which i was talking about is generic for all events.
Regards,
Martin
On Sep 12, 2012, at 10:01 AM, "Wang, Yongkun | Yongkun | BDD" < address@hidden> wrote:
Thanks Martin.
I am looking forward to it.
Regards,
Yongkun Wang
From: Martin Pala < address@hidden>
Reply-To: This is the general mailing list for monit < address@hidden>
Date: 2012年9月12日水曜日 16:44
To: This is the general mailing list for monit < address@hidden>
Subject: Re: Merge alerts into one email within one cycle for the same service
Hi,
the implementation of alert aggregations (multiple events to one email) is just in progress for the next M/Monit version. We can maybe add the same to Monit in the future.
Regards,
Martin
On Sep 12, 2012, at 9:09 AM, "Wang, Yongkun | Yongkun | BDD" < address@hidden> wrote:
Hi,
Is it possible to config Monit to merge alerts into ONE email within one cycle for the same service?
For example,
Check file my-log-file
with path /var/log/my.log
every "*/30 * * * *"
If match "Exception" then alert
There may be many alerts within 30 minutes cycle, for each alert monit will send an email, it is annoying sometime.
So is it possible to merge them into one email?
Monit is almost perfect for our current situation.
Cheers,
Yongkun Wang
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
|