[ZBX-20192] Zabbix Agent 2 can't run Power Shell command from action Created: 2021 Nov 09  Updated: 2024 Apr 10  Resolved: 2021 Dec 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G)
Affects Version/s: 5.0.17
Fix Version/s: 5.0.19rc1, 5.4.9rc1, 6.0.0beta1, 6.0 (plan)

Type: Problem report Priority: Major
Reporter: Aleksey Volodin Assignee: Antons Sincovs
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2021-11-09-17-20-07-451.png     PNG File image-2021-11-09-17-21-24-059.png     PNG File image-2021-11-19-10-03-24-577.png     PNG File image-2021-11-19-10-04-09-963.png     PNG File image-2021-11-19-10-04-34-358.png     PNG File image-2021-11-19-10-04-45-202.png     PNG File image-2021-11-19-10-05-38-948.png     PNG File image-2021-11-19-10-06-46-148.png     PNG File w1.png     PNG File w2.png     PNG File w3.png    
Issue Links:
Duplicate
is duplicated by ZBX-20351 Parameter nowait with Zabbix Agent 2 ... Closed
Team: Team A
Sprint: Sprint 82 (Nov 2021), Sprint 83 (Dec 2021)
Story Points: 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



 Comments   
Comment by Dmitrijs Goloscapovs [ 2021 Dec 01 ]

Available in versions:

Generated at Sun Jun 15 13:55:04 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.