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

User macros are not detected by "Test item" dialog if they are used in the calculated item formula

    XMLWordPrintable

Details

    • Team A
    • Sprint 83 (Dec 2021), Sprint 84 (Jan 2022), Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022)
    • 1

    Description

      User mactros are not detected and not resolved by "Test item" dialog if they are used in the calculated item formula.

      Steps to reproduce:

      1. Create a host with a numeric item (for example with agent.ping key)
      2. Create the following user macro for this host: {$H} => 5h
      3. Create a Calculated item for this host with the following formula:
        avg(agent.ping,{$H})
        
      4. Click on "Test" button - notice that no macros are detected in this dialog
      5. In the opened overlay dialog click on "Get value and test" button

      Result: macro is not resolved and the following error is displayed:

      Cannot evaluate expression: "Cannot evaluate function "avg({$H})": invalid first parameter.".
      

      Expected: Macros should be detected and an option to localy update its value should be present (the value should also be retrieved). The dialog should return the average value of key agent.ping over the last 5 hours

      Attachments

        Activity

          People

            rdetlavs Reinis Detlavs
            solonkins Sergejs Olonkins
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: