[Top][All Lists]

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

Re: How to repeat alert notification

From: Guillaume François
Subject: Re: How to repeat alert notification
Date: Thu, 26 Jan 2017 16:56:20 +0100


Syntax is ok

Could it be an issue related to the version of Monit you're using ?

Changelog ( shows the behavior was changed in 5.16.0 as before it was forced to "repeat every 1 cycle".

Therefore this syntax was not supported before.

Best Regards.

2017-01-26 16:27 GMT+01:00 Riccardo Leonardi <address@hidden>:

I have a script checking mail queue returning alert if queue lenght is greather than some threshold.

The alert is correctly forwarded to slack channel, but when the threshold is reached only, not when the queue remains over the threshold.

In fact the behaviour I'd like to implement is:
- receive the alert when the queue goes over the threshold
- continue receiving the alert (possibly with current queue lenght) every x cycles
- stop receiving when the queue returns under the threshold

Currently I have implemented the following:

check program qlen_check with path "/usr/local/monit/conf/ 200"
    if status != 0 then exec "/usr/local/monit/conf/" repeat every 10 cycles

The script echoes queue lenght and return 1 if queue > 200.
As soon as that happens I got 1 slack alert only, while I'd like to keep receiving it every x cycles (when is correctly run).

Does anyone have any suggestion how to achieve that behaviour?

Thank you in advance.


To unsubscribe:

Version: 3.1
GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--? w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-) DI !D- G(+)>+ e+++ h--() r->$ y?*

reply via email to

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