Ad Widget

Collapse

Help with trigger prototypes and referencing LLD / host macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sfuller
    Junior Member
    • Jun 2023
    • 5

    #1

    Help with trigger prototypes and referencing LLD / host macros

    I would like to create a trigger that fires when bandwidth for an SNMP discovered interface is below a certain value. I want the trigger to fire at a different value for each discovered interface.

    My approach was going to be to create the trigger prototype and have it reference an interface specific user macro that is named based on the value of #IFALIAS for each interface.

    Example:
    I have a switch with two interfaces with that have the values of 1.234 and 5.678 for #IFALIAS. When the trigger is created by the template, I'd like it to look at a user macro on the host named $LOW_BW_1.234 f
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    This is called macro with a context... https://www.zabbix.com/documentation...macros_context

    {$LOW_BW:"{#IFNAME}"}

    Comment

    Working...