Hi, I would like to restart a windows service if it has been down for x mins.
I know the custom script would be:
C:\Windows\System32\net start <servicename> in windows.
I'm wondering how I would get the zabbix trigger variable (service.name) into this?
eg a trigger is fired for "SessionEnv" service on windows not started and after 15 minutes, I want zabbix to issue the remote command "C:\Windows\System32\net start SessionEnv"
Obviously I want the trigger variable within that command so that this will work with any service.
I know the custom script would be:
C:\Windows\System32\net start <servicename> in windows.
I'm wondering how I would get the zabbix trigger variable (service.name) into this?
eg a trigger is fired for "SessionEnv" service on windows not started and after 15 minutes, I want zabbix to issue the remote command "C:\Windows\System32\net start SessionEnv"
Obviously I want the trigger variable within that command so that this will work with any service.
Comment