Hi, I'm trying to achieve the following scenario:
I monitor the status of few Windows services and I would like to create an action script that will attempt to re-start the service that triggered the alarm.
Now, I managed to create the script with the following remote command:
Now, I don't want to create a different action for every service name so I was thinking about settings a tag on each trigger with the servicename and then set the name of the value in my remote command, For example:
where service-name is a tag in my trigger with value of my actual service that I'm monitoring.
I didn't find a way to do that..
Thanks
I monitor the status of few Windows services and I would like to create an action script that will attempt to re-start the service that triggered the alarm.
Now, I managed to create the script with the following remote command:
Code:
net start servicename
Code:
net start service-name
I didn't find a way to do that..
Thanks
Comment