[ZBX-24823] Unable to Execute Scripts/Commands from Server to Agent2 (7.0.0) Created: 2024 Jul 09  Updated: 2024 Jul 11  Resolved: 2024 Jul 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 7.0.0
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Gabriele Assignee: Zabbix Development Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2024-07-09-22-38-39-090.png    
Issue Links:
Duplicate
duplicates ZBX-24799 Cannot execute script. timeout while ... Doc. sign-off

 Description   

Steps to reproduce:

I updated both Zabbix Proxy and Zabbix Agent to version 7.0 (obviously also Zabbix Server to version 7.0)
Zabbix Agent2 is running as "Local System" on a Windows Server 2022
in zabbix_agent2.conf I set:
AllowKey=system.run[*] 
Plugins.SystemRun.LogRemoteCommands=1

On the Zabbix Server side I created a simple script to restart a [Windows] service ( sc stop "servicename" && sc start "servicename").

I Used Template: Windows by Zabbix agent active for that agent

When used an action that recall above scritp:

a. in zabbix server GUI i see

b. In zabbix_agent2.log I see: .... [SystemRun] Executing command:'sc stop "WMI Mapper" & sc start "WMI Mapper"'

Immediately after Zabbix Agent 2 service I find it stopped and in the Windows event log I see: "The Zabbix Agent 2 service terminated unexpectedly..."

 



 Comments   
Comment by Gabriele [ 2024 Jul 09 ]

See also ZBX-24799 and ZBX-24787

Comment by Alexander Vladishev [ 2024 Jul 11 ]

Task duplicates ZBX-24799 please follow updates there.

Generated at Fri Jun 27 23:04:39 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.