[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: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
||||||||
Issue Links: |
|
||||||||
Team: | |||||||||
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: |
Comments |
Comment by Dmitrijs Goloscapovs [ 2021 Dec 01 ] |
Available in versions:
|