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

Details

    • Team A
    • Sprint 82 (Nov 2021)
    • 0.5

    Description

      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

      Attachments

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

        Activity

          People

            dgoloscapov Dmitrijs Goloscapovs
            avolodin Aleksey Volodin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: