Hi - apologies if this has been asked before, but I haven't been able to find an answer.
We have an alert set up to monitor whether a certain port is listening on a subset of about fifty of our servers. When alerted, we log onto the server in question and re-register the service to listen on that port.
I would like to be able to set up a trigger action to run a small script that does this for us, but can't work out how to get it to do so on the server that is alerting.
If I place the script in (e.g.) c:\scripts of the poller, I would need to pass the name of the server that is alerting to it or, if I place a copy of the script onto each of the servers, I need to be able to say which server to run it on.
I assume the former is the preferred method, but can't see a way of passing the server name as a variable to the script.
Is it possible?
Thanks
Ian