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

Expression macro might get expanded using wrong item values

XMLWordPrintable

    • Sprint 94 (Nov 2022), Sprint 95 (Dec 2022)
    • 0.5

      If expression macro holds functions with {HOST.HOST} macro (or its indexed version) then  value of the first item will be used for all of them. 

      Steps to reproduce:

      1. Create two items on a single host: system.uptime and system.cpu.util
      2. Create trigger and action for that trigger with custom message:
      Uptime: {?last(/{HOST.HOST}/system.uptime)}
      CPU usage: {?last(/{HOST.HOST}/system.cpu.util)}
      1. Fire a trigger

      Result:

      Uptime: 10712
      CPU usage: 10712

      Expected:

      Uptime: 10712
      CPU usage: 11.154913

      Caused by ZBX-21266

            asestakovs Aleksejs Sestakovs
            asestakovs Aleksejs Sestakovs
            Team B
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: