mqtt-tools / mqttwarn

A highly configurable MQTT message router, where the routing targets are notification plugins, primarily written in Python.
https://mqttwarn.readthedocs.io/
Eclipse Public License 2.0
952 stars 183 forks source link

Send warning only once? #392

Closed janolov closed 4 years ago

janolov commented 4 years ago

Is it possible to trigger an alarm only once when the value of a temp probe passes a predefined value, the alarm should also reset when the temp is correct again and ready to trigger the next time it gets out of bound?

amotl commented 4 years ago

Dear @janolov,

you might want to look at the question raised by @jpduyx outlined within #361 and my answer at Data-loss monitoring with mqttwarn.

In general, advanced alarming and notification features like you are asking for are implemented by more sophisticated monitoring systems like Checkmk or Icinga2.

Also things like flapping are usually taken into consideration when looking at those aspects. Here, you want to implement the behavior you are outlining but want to suppress flapping sensors to send out notifications each time when they trigger through reaching configured threshold values. See also [1,2].

However, #194 implements aspects of what you are asking for to the maximum level what is general sensible to expect from mqttwarn.

With kind regards, Andreas.

[1] https://checkmk.com/cms_monitoring_basics.html#flapping [2] https://icinga.com/2017/10/26/flapping-in-icinga280/

jpmens commented 4 years ago

Closing as answered.