[ZBXNEXT-6642] Add flapping interface trigger to "Interfaces SNMP" Created: 2021 Apr 28 Updated: 2023 Nov 01 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Templates (T) |
Affects Version/s: | 5.2.6 |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Medium |
Reporter: | Boden Garman | Assignee: | Zabbix Integration Team |
Resolution: | Unresolved | Votes: | 2 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
Hello, I am proposing a new trigger to detect if an interface is "flapping" ie going up and down multiple times in a short period of time is added to the official "Interfaces SNMP" template. This is to avoid multiple "problem / resolved" alerts for administrators if an interface is constantly going up and down The "Interface {#IFNAME}({#IFALIAS}): Link down" prototype should be dependent on this new trigger as well to avoid triggering constantly. Possibly using count on ifOperStatus and checking for more than 5 values of 1 (up) and 2 (down) in a ten minute interval or so, but there is possibly a more elegant way
|
Comments |
Comment by Boden Garman [ 2021 Apr 28 ] |
Something like this, perhaps (under name: 'Interface {#IFNAME}({#IFALIAS}): Operational status') expression: '{$IFCONTROL:"{#IFNAME}"}=1 and ({count(15m,1)}>5 and {count(15m,2)}>5)' |
Comment by Orion Poplawski [ 2023 Nov 01 ] |
What about (untested): - uuid: ddbec6eb34294e3dbbc794d833d36960 recovery_mode: RECOVERY_EXPRESSION {{ recovery_expression: '{$IFCONTROL:"{#IFNAME} "}=0 or count(/Cisco IOS by SNMP/net.if.statusifOperStatus.{#SNMPINDEX},5m,,2)=0'}} "}=0 to disable this trigger for an interface.}} |