User macros with comma in value

XMLWordPrintable

    • Type: Problem report
    • Resolution: Commercial support required
    • Priority: Trivial
    • None
    • Affects Version/s: 6.0.19, 6.4.5
    • Component/s: None
    • Environment:
      Ubuntu server 22 LTS
      Windows 10

      Steps to reproduce:

      1. AllowKey=system.run[[powershell -command "dir *"]] on Windows agent side
      2. Keys system.run[[powershell -command "dir C:\,C:\Backup"]] and  system.run[[powershell command "dir \{$PATH}"]] for host elements

      Result:
      system.run[[powershell -command "dir C:\,C:\Backup"]] ** works like a charm, but if I use macro {$PATH}=C:\,C:\Backup then Zabbix says "Unsupported item key"
      Expected:
      Macro baehavior should act the same as plain key.

            Assignee:
            Maksym Buz
            Reporter:
            acidvenom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: