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), Sprint 83 (Dec 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
          23 kB
          Aleksey Volodin
        2. image-2021-11-09-17-21-24-059.png
          19 kB
          Aleksey Volodin
        3. image-2021-11-19-10-03-24-577.png
          21 kB
          Antons Sincovs
        4. image-2021-11-19-10-04-09-963.png
          4 kB
          Antons Sincovs
        5. image-2021-11-19-10-04-34-358.png
          16 kB
          Antons Sincovs
        6. image-2021-11-19-10-04-45-202.png
          23 kB
          Antons Sincovs
        7. image-2021-11-19-10-05-38-948.png
          12 kB
          Antons Sincovs
        8. image-2021-11-19-10-06-46-148.png
          15 kB
          Antons Sincovs
        9. w1.png
          12 kB
          Dmitrijs Goloscapovs
        10. w2.png
          28 kB
          Dmitrijs Goloscapovs
        11. w3.png
          27 kB
          Dmitrijs Goloscapovs

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: