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

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.4, 5.0.5
    • Component/s: Agent (G)
    • Labels:
      None
    • Environment:
      Windows Server 2008 R2 (Russian)
    • Team:
      Team A
    • Sprint:
      Sprint 70 (Nov 2020), Sprint 71 (Dec 2020)
    • Story Points:
      0.5

      Description

      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)

        Attachments

        1. image-2020-11-02-12-02-58-115.png
          27 kB
          Igor Gorbach
        2. image-2020-11-02-12-11-25-673.png
          3 kB
          Anthony
        3. screenshot-1.png
          3 kB
          Anthony
        4. zabbix_agent2_run_1.jpg
          23 kB
          Anthony
        5. zabbix_agent2_run_2.jpg
          23 kB
          Anthony

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: