Ad Widget

Collapse

How to refer item by its key in graph title?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AMSH
    Junior Member
    • Mar 2021
    • 5

    #1

    How to refer item by its key in graph title?

    Hello!

    I have a custom discovery SNMP-rule which creates an item with key hw.fan.location[{#SNMPINDEX}].It works fine, in host's last data I see it's value. Now I'd like to put this value to the title of a graph in prototype.
    The problem is that I cannot refer this item by the key. After reading docs and some archive topics on a forum, my last try looks like this:
    Click image for larger version

Name:	image.png
Views:	134
Size:	43.8 KB
ID:	471378

    But the expression {{HOST.HOST}:hw.fan.location[{#SNMPINDEX}].last()} does not expand to the value of hw.fan.location[X].
    Where am I wrong? Thanks in advance!
  • AMSH
    Junior Member
    • Mar 2021
    • 5

    #2
    At last I've found a correct expression: {?last(/{HOST.HOST}/hw.fan.location[{#SNMPINDEX}])}

    Comment

    Working...