[ZBXNEXT-4283] Add "nowait" switch for remote commands Created: 2017 Dec 15  Updated: 2017 Dec 19

Status: Reopened
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G), Frontend (F), Proxy (P), Server (S)
Affects Version/s: 3.4.3, 3.4.4
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: Evgeny Kravchenko Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix server on Ubuntu 16.04 Server, several zabbix proxies on ArchlinuxARM, and lots of Windows agents



 Description   

Before zabbix 3.4, I used remote commands to automatically update zabbix agents and was happy. But now I can not restart the zabbix agent with a remote command, I can only stop it. Please add the "nowait" switch for remote commands, the same switch as for the system.run[command, nowait] items.



 Comments   
Comment by Vladislavs Sokurenko [ 2017 Dec 15 ]

What if you execute remote commands on zabbix agent ?

Comment by Evgeny Kravchenko [ 2017 Dec 15 ]

Yes, I do so. Like that:
Executing command 'wscript //B //Nologo \\zabbix\zabbix\usr\vbs\setup.vbs /upgrade'
But in step: Shell.Run ZabbixService.PathName & " -x", 0, True
The agent stops along with the wscript subordinate process.
If I use item system.run[wscript //B //Nologo \\zabbix\zabbix\usr\vbs\setup.vbs /upgrade, nowait] then an independent process wscript is created and the update completes successfully.

Comment by Vladislavs Sokurenko [ 2017 Dec 18 ]

As a workaround I suggest to execute remote commands through proxy.

Comment by Evgeny Kravchenko [ 2017 Dec 19 ]

The problem is that now it's not always possible to execute remote commands through a proxy. The solution can be to execute remote commands with "nowait" mode.
The workaround is system.run[commands, nowait] item and enabling/disabling its by Zabbix API.

Generated at Wed Apr 24 07:32:21 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.