Ad Widget

Collapse

Dynamic label on map

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ziotibia81
    Junior Member
    • Apr 2018
    • 7

    #1

    Dynamic label on map

    Hello!!

    I have a map with two switches and a link betweem them (zabbix get data from snmp).

    I want a label that show current bitrate on the link.

    My label is:

    Code:
    In :{switch01:net.if.in[ifInOctets.1].avg(60)}
    Out:{switch01:net.if.out[ifOutOctets.1].avg(60)}
    I used the host name and key found in host -> items.

    The result is:

    Code:
    In: *UNKNOWN*
    Out: *UNKNOWN*
    Varius forum threads explain different modes to use this key, but all give me same result.

    Does anyone have a working example?

    I'm using Zabbix Appliance 3.4.8.

    Bye

  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Is the update interval of the item longer than 60 seconds?
    Then, the value of the item may not have been acquired within the last 60 seconds.

    Try to make it longer than the item update interval or try using the function last().

    ex.
    Code:
    In :{switch01:net.if.in[ifInOctets.1].avg(180)}
    Out:{switch01:net.if.out[ifOutOctets.1].avg(180)}

    Comment

    • ziotibia81
      Junior Member
      • Apr 2018
      • 7

      #3
      Hi! Thanks for your suggestion.
      Unfortunately this not solve the problem. I also used ".last()" and ".last(0)" but I always get "*UNKNOWN*"

      Comment

      • ziotibia81
        Junior Member
        • Apr 2018
        • 7

        #4
        .....Solved just now....

        "switch01" is the visible name but the host name is "switch01.site.lan"... Using the right host I can see values.... :-)

        Comment

        Working...