Ad Widget

Collapse

Tag from template to host

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • markosa
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Aug 2022
    • 104

    #1

    Tag from template to host

    Is it possible to assign tag containing, for example inventory value, for host(s) using same template? I wish to filter out hosts, via Configuration - Hosts, which are certain type, and type is detected via snmp poll, value is populated to inventory model field. I've tried to use template level tag and assing there tag: model with value {INVENTORY.MODEL} but it won't work when template is assigned to host, eventhoug value is populated to inventory itself.
  • Answer selected by markosa at 08-08-2023, 12:10.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    Macros are resolved, when event is generated. It is not resolved in other places. So if you assign a tag in template, it will be used during event generation but not in config/host selection.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #2
      Macros are resolved, when event is generated. It is not resolved in other places. So if you assign a tag in template, it will be used during event generation but not in config/host selection.

      Comment

      Working...