Ad Widget

Collapse

The macro does not work in the label of the links

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • martinpedros
    Junior Member
    • Jun 2020
    • 4

    #1

    The macro does not work in the label of the links

    Hi team:

    I am having a problem that the macro does not work for me on the label of a "Link". Te same macro on the label of the "map element (host)" it works perfectly (please see attached image). I have Zabbix 5.4, I don't know if someone experienced the same problem.

    Click image for larger version

Name:	Map Macro Link Label Problem_.jpg
Views:	2086
Size:	294.4 KB
ID:	427573

    Thanks in advance.

    Martin Pedros
    Attached Files
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Think about it - which host will the {HOST.HOST} macro on the connection connecting two hosts map element relate to?

    Comment


    • martinpedros
      martinpedros commented
      Editing a comment
      Dear Hamardaban,

      First, thank you very much for your quick response, it has really been very helpful for me. I think I made a beginner's mistake which was not to read the documentation before making the query and I apologize for that. You have reason to use the macro, in the documentation it clearly said that you should use the following form: "{host: key.func (param)}", use the following:

      In: {FW-CASA:ifInOctets[WAN].last(0)}
      Out: {FW-CASA:ifHCOutOctets[WAN].last(0)}

      ... and it is already working correctly. I'm really starting with Zabbix and contributions like this are very helpful to me.

      Thanks!
Working...