Ad Widget

Collapse

tagging priority differences between Zabbix 4.4 and 6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paziu
    Junior Member
    • Apr 2020
    • 5

    #1

    tagging priority differences between Zabbix 4.4 and 6.0

    hi all,

    in Zabbix 4.4 when a tag is set in the system template with a <null> value and the same tag is set to a specific value in the host configuration, the host tag is taking the precedence over the one in the template:
    template: MYTAG=
    host: MYTAG=MYVALUE
    in eg. Actions / email alerts the tag value is MYTAG=MYVALUE

    in 6.0 the tag and value used in Actions / email is being imported from the one that's set in the template ( which has <null> value ), and the one set in the host configuration with the same name, is being ignored

    is there a way to set how Zabbix prioritizes the tag values based on their location? ( template / host config / webscenario. )
    otherwise, in 6.0.16, the email alerts are coming in with no value assigned to EVENT.TAGS.MYTAG

    thanks!

    edit: should not the value for EVENT.TAGS.MYTAG be overwritten/set? regardless if set on the template or host level?
    it seems like it creates two instances, one with no value and one that has a specific value assigned ( for the same tag )
    Last edited by paziu; 18-08-2023, 21:41.
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #2
    The "{EVENT.TAGS.<tag name>}" macro utilizes the event tags, not the host or template tags.
    When an event is triggered, it inherits the tags associated with host/item/trigger.

    In your specific scenario, the issue might stem from a difference between the <tag name> specified and the actual tag assigned to the event, resulting in an empty macro.

    Comment

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

      #3
      Yes.. you will have 2 tags there, one with value and one without as event inherits all tags from all levels. IIRC it was the same in v4.4 also. https://www.zabbix.com/documentation...config/tagging
      A problem event inherits all tags from the whole chain of templates, hosts, items, web scenarios, triggers.
      Tag with a value and without value a taken as 2 separate tags...
      If you refer to a tag by name in action and you happen to have multiple ones with same name, then IIRC the one with lower ID is found first and is used...

      Comment

      Working...