Ad Widget

Collapse

Map labels not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fly476
    Junior Member
    • Oct 2021
    • 3

    #1

    Map labels not working

    Been pulling my hair out over this one...

    Sooo i can use {HOST.HOST} and it echos the hostname. or {HOST.IP} to get the IP address. This is working as expected.

    However when i attempt to echo for example the built in zabbix Localhost Tags "system.cpu.util[,user]" Its not working.
    I have tried every rendition of quotes, no quotes, with no avail.

    Trying to use it with a host named "zab"

    should i be using "zab" in place of "HOST" below?

    {{HOST.HOST}:{system.cpu.util[,user]}
    {HOST.HOST:system.cpu.util[,user]}

    If anyone could help it would be greatly appreciated. I love this software, and this would be the icing on the cake if i coulds get it working..

    Thanks,!!
    Last edited by fly476; 17-10-2021, 03:45.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    {{HOST.HOST}:system.cpu.util[,user].last(0)}


    The {host:key.func(param)} macro is supported in this field, but only with avg, last, min and max trigger functions, with seconds as parameter.

    Comment

    • fly476
      Junior Member
      • Oct 2021
      • 3

      #3
      Still having the issue where the label wont show data. See attached screenshot


      Click image for larger version

Name:	Capture.PNG
Views:	968
Size:	47.4 KB
ID:	433252

      Comment

      • fly476
        Junior Member
        • Oct 2021
        • 3

        #4
        I have read the manual over and over, watched countless tutorials... i need to get this to work...

        Tried this as well.....

        {{HOST.HOST}:system.cpu.util[,user].last(0)}Click image for larger version

Name:	Capture.PNG
Views:	967
Size:	64.4 KB
ID:	433279
        {{HOST.HOST}:agent.hostname.last(0)}

        What am I doing wrong?

        Nothing seems to work...

        Any Help would be appreciated

        Comment


        • Hamardaban
          Hamardaban commented
          Editing a comment
          What version of Zabbix you are using?
      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #5
        I tried it with Zabbix 5.0.16 and 5.4.5, but the following description was successfully expanded and I was able to display each value. What is the detailed version of Zabbix you are using?
        Code:
        {{HOST.HOST}:system.cpu.util[,user].last(0)}
        {{HOST.HOST}:agent.hostname.last(0)}

        Comment

        Working...