Hello,
There is a windows machine (2012R2) with zabbix agent installed as a service. In the configuration file, I've allowed remote commands and it seems that it works.
I can run a simple commands with zabbix_get like "system.run['dir']" and so on. My question is - is it possible to restart "Zabbix Agent" service from zabbix server?
I tryied with "system.run['net stop "Zabbix Agent" & net start "Zabbix Agent"']" on a test Windows machine, but this only stops the agent without starting it again and it was needed to start it manually from RDP session.
Because I'm not administrating most of the servers I would like to avoid reaching MS admins every time I need to do something simple like zabbix agent's configuration file changes.
Regards
There is a windows machine (2012R2) with zabbix agent installed as a service. In the configuration file, I've allowed remote commands and it seems that it works.
I can run a simple commands with zabbix_get like "system.run['dir']" and so on. My question is - is it possible to restart "Zabbix Agent" service from zabbix server?
I tryied with "system.run['net stop "Zabbix Agent" & net start "Zabbix Agent"']" on a test Windows machine, but this only stops the agent without starting it again and it was needed to start it manually from RDP session.
Because I'm not administrating most of the servers I would like to avoid reaching MS admins every time I need to do something simple like zabbix agent's configuration file changes.
Regards
Now wondering how can I simply transfer this to the MS host via Remote Commands... if it was linux it could be really simple (also here we have kill -9, service restart and so on...), but on Windows, even simple output redirect with ">>" is not working....


Comment