monit-general
[Top][All Lists]
Advanced

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

RE: Single email from multiple related content matches


From: Kevin Smith
Subject: RE: Single email from multiple related content matches
Date: Sat, 10 Feb 2018 15:33:34 +0000

I'm on 5.1, looks like I need to upgrade

-----Original Message-----
From: monit-general [mailto:address@hidden On Behalf Of address@hidden
Sent: Thursday, February 08, 2018 1:56 PM
To: This is the general mailing list for monit
Subject: Re: Single email from multiple related content matches

Hi,

which Monit version it is? (monit -V)

The Monit 5.4 or later should send only one email if the pattern matches 
multiple times in one cycle, 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. Also the event rate is fixed now, so
  it is possible to require match for X cycles before generating the
  event.
--8<--

If you have different patterns/tests, then Monit will send one email per test. 
The emails can be aggregated for example using M/Monit, which can collect 
events from Monit agents and aggregate: https://mmonit.com


Best regards,
Martin



> On 8 Feb 2018, at 19:23, Kevin Smith <address@hidden> wrote:
> 
> I have a content match set up for instance IF match “foo” within 1 
> cycle then alert (email).
>  
> But if “foo” matches 14 times in the same cycle, it sends 14 emails.  Is 
> there a way to make it only send 1 email, either for the 1st (or last) match 
> during that cycle, or 1 email with at 14 matches (preferred)?
>  
> Thanks!
>  
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


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


NOTICE: This email message is for the sole use of the intended recipient(s) and 
may contain confidential and privileged information. Any unauthorized use, 
disclosure or distribution is prohibited. If you are not the intended 
recipient, please contact the sender by reply email and destroy all copies of 
the original message.

reply via email to

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