Hi all Zabbixers, I have a little issue with using Macro in Trigger prototype. I did update a value in this macro, however already generated triggers from this macro are still using old value.
Let see standard Template in Zabbix installation "Template Module Interfaces Simple SNMPv2", there is Macro value {$IF_UTIL_MAX} equal 90 by default.
I did change this value to 95, however all triggers are still generating alarm using value of 90.
Trigger expression is defined as:
({Template Module Interfaces Simple SNMPv2:net.if.in[ifInOctets.{#SNMPINDEX}].avg(15m)}>({$IF_UTIL_MAX:"{#IFNAME}"}/100)*{Template Module Interfaces Simple SNMPv2:net.if.speed[ifSpeed.{#SNMPINDEX}].last()} or {Template Module Interfaces Simple SNMPv2:net.if.out[ifOutOctets.{#SNMPINDEX}].avg(15m)}>({$IF_UTIL_MAX:"{#IFNAME}"}/100)*{Template Module Interfaces Simple SNMPv2:net.if.speed[ifSpeed.{#SNMPINDEX}].last()}) and {Template Module Interfaces Simple SNMPv2:net.if.speed[ifSpeed.{#SNMPINDEX}].last()}>0
Can you please explain, where the connection between Macro value of {$IF_UTIL_MAX} in Template and actually generated triggers on host is? In other words, how does Zabbix know what value (from what template) of Macro {$IF_UTIL_MAX} to use?
Thank you for any advice.
Let see standard Template in Zabbix installation "Template Module Interfaces Simple SNMPv2", there is Macro value {$IF_UTIL_MAX} equal 90 by default.
I did change this value to 95, however all triggers are still generating alarm using value of 90.
Trigger expression is defined as:
({Template Module Interfaces Simple SNMPv2:net.if.in[ifInOctets.{#SNMPINDEX}].avg(15m)}>({$IF_UTIL_MAX:"{#IFNAME}"}/100)*{Template Module Interfaces Simple SNMPv2:net.if.speed[ifSpeed.{#SNMPINDEX}].last()} or {Template Module Interfaces Simple SNMPv2:net.if.out[ifOutOctets.{#SNMPINDEX}].avg(15m)}>({$IF_UTIL_MAX:"{#IFNAME}"}/100)*{Template Module Interfaces Simple SNMPv2:net.if.speed[ifSpeed.{#SNMPINDEX}].last()}) and {Template Module Interfaces Simple SNMPv2:net.if.speed[ifSpeed.{#SNMPINDEX}].last()}>0
Can you please explain, where the connection between Macro value of {$IF_UTIL_MAX} in Template and actually generated triggers on host is? In other words, how does Zabbix know what value (from what template) of Macro {$IF_UTIL_MAX} to use?
Thank you for any advice.
Comment