Ad Widget

Collapse

Documentation on TEMPLATE_NAME:METRIC

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jjschultz
    Junior Member
    • Jun 2021
    • 1

    #1

    Documentation on TEMPLATE_NAME:METRIC

    I was reviewing the latest "Template Module Linux network interfaces by Zabbix agent".
    In the Trigger "Interface {#IFNAME}: Link down" the Descriptions says "3. {TEMPLATE_NAME:METRIC.diff()}=1) - trigger fires only if operational status was up(1) sometime before. (So, do not fire 'ethernal off' interfaces.)"

    What is TEMPLATE_NAME:METRIC ​​​​​?
    I could not find any documentation on this.

    I assume this is a MACRO to a Item in the current Template
    • TEMPLATE_NAME="Template Module Linux network interfaces by Zabbix agent"
    • METRIC= ?

    I am not sure what item METRIC is referencing.
    I assume it has something to do with the last line in the Problem expression, based on the Description.
    Code:
    [FONT=Lucida Sans Unicode]{$IFCONTROL:"{#IFNAME}"}=1 and ({Template Module Linux network interfaces by Zabbix agent:vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"].last()}=2 and [B]{Template Module Linux network interfaces by Zabbix agent:vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"].diff()}=1[/B])[/FONT]
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    "METRIC" is referring to the metric that is being collected and then evaluated in the trigger, in this case "vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"]".

    I see the trigger expressions in the template documentation have not been yet updated to the Zabbix 5.4 format.

    Markku

    Comment

    Working...