For some reason, quite a few of our devices do not restart the Zabbix agent after a reboot. Primarily this occurs on Windows 2019 std servers. I am using PsService to restart the zabbix service remotely.
Very simple and it works.
However, what I want to do is that if the Zabbix agent shows unreachable for 3m minutes (the standard zabbix trigger) that is will automatically try to restart the zabbix service. As PsService is a windows thing and Zabbix is on a linux server I am lost on how that works. So I may need to know if this can be done from Linux to Windows - if so how? And where\how do I set up Zabbix to execute the script to restart the Zabbix server?
Code:
PsService.exe \\SERVER01.domain.org -accepteula -u AdminUser -p AdminPassword restart "Zabbix Agent 2"
However, what I want to do is that if the Zabbix agent shows unreachable for 3m minutes (the standard zabbix trigger) that is will automatically try to restart the zabbix service. As PsService is a windows thing and Zabbix is on a linux server I am lost on how that works. So I may need to know if this can be done from Linux to Windows - if so how? And where\how do I set up Zabbix to execute the script to restart the Zabbix server?
Comment