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

Zabbix Agent 2 can't run Power Shell command from action

XMLWordPrintable

    • Sprint 82 (Nov 2021), Sprint 83 (Dec 2021)
    • 0.5

      Zabbix Agent 2 can't run Power shell Scripts from action. But in same time if you manualty run it from Frontend - all work as expected.

      Also there is no issue with Agent 1.

      Steps to reproduce:

      Create global script:

      Commands:

      powershell -NoProfile -ExecutionPolicy bypass -File "C:\Programdata\zabbix-agent-scripts\CMSServicesCheckandStart.ps1"

      CMSServicesCheckandStart.ps1 file contain:

      "Some test string" >> D:\File.txt

      Create action for some trigger

      Fire the trigger.

      Result:
      No new string in file
      Expected:
      New string in file

        1. w3.png
          w3.png
          27 kB
        2. w2.png
          w2.png
          28 kB
        3. w1.png
          w1.png
          12 kB
        4. image-2021-11-19-10-06-46-148.png
          image-2021-11-19-10-06-46-148.png
          15 kB
        5. image-2021-11-19-10-05-38-948.png
          image-2021-11-19-10-05-38-948.png
          12 kB
        6. image-2021-11-19-10-04-45-202.png
          image-2021-11-19-10-04-45-202.png
          23 kB
        7. image-2021-11-19-10-04-34-358.png
          image-2021-11-19-10-04-34-358.png
          16 kB
        8. image-2021-11-19-10-04-09-963.png
          image-2021-11-19-10-04-09-963.png
          4 kB
        9. image-2021-11-19-10-03-24-577.png
          image-2021-11-19-10-03-24-577.png
          21 kB
        10. image-2021-11-09-17-21-24-059.png
          image-2021-11-09-17-21-24-059.png
          19 kB
        11. image-2021-11-09-17-20-07-451.png
          image-2021-11-09-17-20-07-451.png
          23 kB

            asincovs Antons Sincovs
            avolodin Aleksey Volodin
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: