Ad Widget

Collapse

How to use host:key.func(param) to get the value of a item in Network Map

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jinu
    Junior Member
    • Apr 2021
    • 7

    #1

    How to use host:key.func(param) to get the value of a item in Network Map

    Hi Folks

    I am trying to get the label of a host populated in the network map and i am using the MACRO {host:key.func(param)} for the same. But no matter what i do i alway get the value as "UNKNOWN". Some examples.

    1. I am trying to find the ip of the host and for that i have a Item with key "net.int.ip.wired" . So i entered the value as UBUSERVER:net.int.ip.wired.last(0), but this gives me "UNKNOWN"
    2. For a link i am trying to get the data transfer rate. For this the interface eth0 has a item net.if.in["eth0"]. So i entered the value as UBUSERVER:net.if.in["eth0"].last(0), but this gives me "UNKNOWN". I also tried eth0 without the double quotes but same result

    So how do i get these item values for a host into the network map
Working...