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

Zabbix Agent2 possible bug in item system.run

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 5.0.4, 5.0.5
    • Agent (G)
    • None
    • Windows Server 2008 R2 (Russian)
    • Sprint 70 (Nov 2020), Sprint 71 (Dec 2020)
    • 0.5

      Steps to reproduce:

      1. Install Zabbix Agent2 and keep service's account as "Local System"
      2. Allow remote execution at Agent2 configuration file: AllowKey=system.run[*]
      3. Set logging debug level to 4
      4. Add as templtated or direct item key (unsigned): system.run[netstat -a -n|find /c "CLOSE"]
      5. Wait for result or push it manually
      6. See "▒▒▒ ▒▒▒▒㯠: \" in Agent's log (in Russian: "Нет доступа: \", in English: "Access denied: \"

      Note: if i remove part, starting from "|" symbol from item key system.run[netstat -a -n|find /c "CLOSE"] (as system.run[netstat -a -n]), i get result (but without filtering via console command "find"). Any try to add "|" symbol to command make an error in output.

      Possible affected to system.run[] with powershell and "|" used in expressions too (not tested).

      Result:
      See screenshot run_1 with combined server console and agent2 log file

      Expected:
      Unsigned number (from 0 to any other)

            wiper Andris Zeila
            Anth0ny_m6 Anthony
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: