Ad Widget

Collapse

Using a macro in a map shape to show the host’s description

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • s.gasca
    Junior Member
    • Aug 2019
    • 22

    #1

    Using a macro in a map shape to show the host’s description

    Hello,
    Since the text part on a "Shape" is customizable in terms of font, I would have liked to be able to retrieve the Description value that I entered on my host.

    This works if I use a "Map Element" with the host selected and the macro {HOST.DESCRIPTION}, but how can I call this value from a "Shape", as we can do for example with values coming from "items" by specifying the host we are querying:
    {?last(/SOP-GENET-PCA-SW-CORE-1/net.if.descr[ifDescr.1])}

    Working example with Map Element Host but i can't change Font type, size, or color.
    Click image for larger version

Name:	image.png
Views:	17
Size:	24.6 KB
ID:	506890Click image for larger version

Name:	image.png
Views:	44
Size:	28.0 KB
ID:	506888

    And example with Macro from value Available memory with Zabbix Server and i would like to have also Description from host the same way.​

    Click image for larger version

Name:	image.png
Views:	18
Size:	37.7 KB
ID:	506889
    Is this achievable ?

    Thanks
    ​​
Working...