Hi all,
i wrote a trigger for a personal template that alert me when a signal goes down the last hour average plus a static threshold:
Now, i want to improve it and i would like to write a trigger that alert me when the signal level goes down the last hour average (plus the static threshold) for 10 minutes.
That means that if the signal goes down for only 2 or 3 or 4 minutes the triggere won't be start; instead if the signal goes down for 11 minutes it has to start and send the alert.
How can i modify it to do this?
Thanks a lot
Christian
i wrote a trigger for a personal template that alert me when a signal goes down the last hour average plus a static threshold:
Code:
triggers:
- uuid: ef68948773724d1182b027ff2a2cb020
expression: 'last(/Mikrotik_RB912_AP/Mikrotik_Signal) < (avg(/Mikrotik_RB912_AP/Mikrotik_Signal,1h) + {$SIGNAL_LEVEL_THRESHOLD})'
name: 'Mikrotik: Signal level decreased'
event_name: '{HOST.NAME}: Signal Level decreased (actual level: {ITEM.VALUE})'
priority: WARNING
description: 'Signal Level decreased'
manual_close: 'YES'
tags:
- tag: scope
value: warning
That means that if the signal goes down for only 2 or 3 or 4 minutes the triggere won't be start; instead if the signal goes down for 11 minutes it has to start and send the alert.
How can i modify it to do this?
Thanks a lot
Christian
Comment