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

User macros with comma in value

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.19, 6.4.5
    • None
    • 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.

            mbuz Maksym Buz
            acidvenom acidvenom
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: