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

Built-in macros are not expanded when testing Script item

XMLWordPrintable

    • Sprint 70 (Nov 2020), Sprint 71 (Dec 2020)
    • 0.5

      Steps to reproduce:

      • Create item "Script"
      • Set script field to:
        var params = JSON.parse(value);
        return params.par1;
      • Add parameter:
        name: par1
        value: {HOST.NAME}
        
      • Test item

      Result:

      {HOST.NAME}

      is returned

      Expected:
      Actual visible host name should be returned

            talbergs Mārtiņš Tālbergs (Inactive)
            asestakovs Aleksejs Sestakovs
            Team B
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: