Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21255

Macro funcitons aren't working on map element labels

XMLWordPrintable

    • Sprint 103 (Aug 2023)
    • 1

      Steps to reproduce:

      Create any map element

      Use any float item into the label with fmtnum macro function usage to limit digits after the comma, as it had been described into documentation

      https://www.zabbix.com/documentation/current/en/manual/config/triggers/expression#example-17

      Example

      Load: {{?last(/Zabbix server/system.cpu.load[all,avg5])}.fmtnum(1)} 

      Result - Expression Macro working, trigger function not

      Expected

      Expression macro is allowed to use in map element labels, macro functions should work as well

      Similar behavior on 6.0.0-6.0.5 versions

       

        1. image-2022-06-27-15-49-59-919.png
          28 kB
          Igor Gorbach
        2. image-2022-06-27-15-50-30-315.png
          28 kB
          Igor Gorbach
        3. image-2022-06-27-15-50-40-101.png
          21 kB
          Igor Gorbach
        4. image-2022-09-04-15-45-53-009.png
          22 kB
          Alexander Vladishev

            sasha Alexander Vladishev
            igorbach Igor Gorbach
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: