Ad Widget

Collapse

Unable to assign dynamic tag to host during autoregistration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KCSCFE
    Junior Member
    • May 2025
    • 3

    #1

    Unable to assign dynamic tag to host during autoregistration

    Hello,
    I need your help. I'm unable to assign a dynamic tag via autoregistration.
    I'm using Zabbix 7.0.11 with Agent2 (active agent).
    I would like the host to be assigned a tag with value = hostname when it is created.

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

    #2
    This does not work?
    Click image for larger version

Name:	image.png
Views:	54
Size:	12.8 KB
ID:	503121

    Comment

    • KCSCFE
      Junior Member
      • May 2025
      • 3

      #3
      The solution isn't working. Here is the result/output.Click image for larger version

Name:	Capture d’écran du 2025-05-19 10-24-28.png
Views:	50
Size:	13.9 KB
ID:	503185

      Comment

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

        #4
        It works... but it works during event generation. Here in config it will stay as a macro, only to be replaced with real value, if any trigger from that host fires and inherits all tags and values.

        Comment

        • KCSCFE
          Junior Member
          • May 2025
          • 3

          #5
          Okay, but then how can we have a dynamic tag with the hostname value ?

          Comment

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

            #6
            I dont get the question... It is as dynamic as it can be... every event from that host will have a tag service with value set to current hostname... From you pic service:VMTESTZBX...

            Comment

            Working...