[ZBX-13278] Wrong "Link Down" trigger prototype logic Created: 2017 Dec 31 Updated: 2024 Apr 10 Resolved: 2018 Apr 19 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Templates (T) |
Affects Version/s: | 3.4.5 |
Fix Version/s: | 3.4.9rc1, 4.0.0alpha6, 4.0 (plan) |
Type: | Problem report | Priority: | Minor |
Reporter: | Yaroslav | Assignee: | Vitaly Zhuravlev |
Resolution: | Fixed | Votes: | 0 |
Labels: | Interfaces, Module, Template | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Team: | Team A |
Sprint: | Sprint 31, Sprint 32 |
Story Points: | 0.125 |
Description |
In Template Module Interfaces SNMPv2 and similar templates, it seems to be a wrong logic on triiger prototype: Interface {#IFNAME}({#IFALIAS}): Link down {$IFCONTROL:"{#IFNAME}"}=1 and ({Template Module Interfaces SNMPv2:net.if.status[ifOperStatus.{#SNMPINDEX}].last()}=2 and {Template Module Interfaces SNMPv2:net.if.status[ifOperStatus.{#SNMPINDEX}].diff()}=1) Template Module Interfaces SNMPv2:net.if.status[ifOperStatus.{#SNMPINDEX}].diff()}=1
is responsible for the trigger being in problem state only short time when the port status change, it measures the difference between last received and previous value. So problem closes at the next received value, so in default problem lives only 60 seconds even if the interface link still down. There is thread in the forum about it: https://www.zabbix.com/forum/showthread.php?p=205891#post205891 |
Comments |
Comment by Vitaly Zhuravlev [ 2017 Dec 31 ] |
Thank you. For now you can download updated templates here: https://share.zabbix.com/official-templates/template-modules-pack |
Comment by Yaroslav [ 2018 Jan 02 ] |
OK, thank you for very quick fix! |
Comment by Vitaly Zhuravlev [ 2018 Apr 11 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-13278 |
Comment by Alexander Vladishev [ 2018 Apr 19 ] |
Fixed in:
|
Comment by richlv [ 2018 Nov 26 ] |
(1) Looks like documentation for this is missing in https://www.zabbix.com/documentation/3.4/manual/installation/template_changes. martins-v Added to documentation: RESOLVED |
Comment by Nicola Mauri [ 2023 Feb 21 ] |
Hi, this issue still appears in some recent templates as well, i.e.:
In this template a "Discard unchanged with 6h heartbeat" is used, so this trigger will always recover exactly after 6 hours, even if the interface is still down. |
Comment by Dimitri Bellini [ 2023 Feb 22 ] |
Hi Zabbix DevTeam, |