Set a delay alert up/down via email

Started by LeonardoKoxa, December 09, 2020, 07:34:57 PM

Previous topic - Next topic

LeonardoKoxa


Hi guys.
By email I am receiving email alerts of some devices that do up / down. I am looking for a system where I can reduce netxms mail forwarding. Right now I am receiving access point ups / downs frequently, if there is a way to get me to receive only 1 email or a few emails over a 5 minute interval that would be great.
I checked the Server configuration but I don't know the right parameter to configure. Can anyone help me? :)
Thanks

Alex Kirhenshtein

#1
You can use action timers for this. Set action delay and key (for example NODE_DOWN_%i - macros are the same as in other places of EPP, %i - object id) in NODE_DOWN rule. Then cancel timer with the same key in NODE_UP rule. Sample config attached.

When SYS_NODE_UP is generated, new action will be scheduled to be executed in 5 minutes. If during this time SYS_NODE_UP is generated for the node - action will be canceled, otherwise you'll get single email with 5 minute delay.

LeonardoKoxa


Thanks a lot for the answer. You saved me 1000 useless emails  ;D ;D