Ad Widget

Collapse

Zabbix 5.4 using macros for hosts and templates tags

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • niq
    Junior Member
    • Aug 2021
    • 3

    #1

    Zabbix 5.4 using macros for hosts and templates tags

    I am trying to set up some tags at host and template level using supported default macros. The problem is the macro is not resolved and the value displayed is macro itself. I have tried: {HOST.HOST}, {HOST.NAME}, {HOST.CONN}, {HOST.DNS}, {HOST.IP}, {HOST.PORT} or {INVENTORY.*} macros.
    Does anybody know if I am doing something wrong. I used the documentation at: https://www.zabbix.com/documentation...config/tagging.
    Thank you !
  • niq
    Junior Member
    • Aug 2021
    • 3

    #2
    Click image for larger version  Name:	Screenshot 2021-08-09 155737.jpg Views:	0 Size:	34.3 KB ID:	429487

    Comment

    • niq
      Junior Member
      • Aug 2021
      • 3

      #3
      Click image for larger version

Name:	Screenshot 2021-08-09 160235.jpg
Views:	1448
Size:	18.5 KB
ID:	429490

      Comment

      • Hekka
        Junior Member
        • Nov 2021
        • 8

        #4
        Hello
        I have the same problem
        Did you get managed to find solution?

        Comment

        • Hekka
          Junior Member
          • Nov 2021
          • 8

          #5
          So nobody is using this feature or the feature doesn't work as described in documentation?

          Comment

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

            #6
            It will be resolved to correct value, when your triggers are triggered and you look on "Problems" page. In such "config" pages they will remain as configured.

            Comment

            • Hekka
              Junior Member
              • Nov 2021
              • 8

              #7
              Originally posted by cyber
              It will be resolved to correct value, when your triggers are triggered and you look on "Problems" page. In such "config" pages they will remain as configured.
              Tags configured with macros also remain not resolved on Monitoring -> Hosts page. This means that filtering hosts on that page using tag:value pairs is also not supported.

              Comment

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

                #8
                Show an example as screenshot or something...
                All those things can be used both as tag names or values....

                Comment

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

                  #9
                  Everything is OK On host config page they are displayed "as is". They will be resolved on "Problem" list, when problem is raised....

                  Comment

                  • MarGeta
                    Junior Member
                    • Nov 2021
                    • 6

                    #10
                    So there is no way to resolve these Macros in the Monitoring-hosts page? From the documentation they make it sound like this should be possible.
                    If we cant filter by resolved macros in the host search it feels quite limited in its use.

                    Click image for larger version

Name:	zabbix stuff.png
Views:	1226
Size:	33.3 KB
ID:	438824

                    Comment

                    • elmorekevin
                      Junior Member
                      • Feb 2018
                      • 15

                      #11
                      This is definitely a limitation

                      Comment

                      Working...