Can the Orion APM be configured to restart a windows service if it see's the service go down?
Hi,
The following should help you:
Restarting Windows Services with an Alert Action
Thanks,
Yann
How does this program work in conjunction with the Windows service recovery actions? Does it compete with it? Do I need to set all my service recovery actions to "Take No Action"?
If anything, I imagine it would complement the recovery actions. Since the recovery actions are usually executed immediately, you can have the trigger delayed for a couple of minutes. If the service is still down, the alert will trigger. Then, you could have the the alert action repeat its attempt to restart the service at specific intervals until it's back up.
One potential problem here is that the account under which Orion is running may not have the correct rights on the remote server. I don't see anywhere in the advanced alerts console to set which account should be used to issue the command to the other server's failed service.
The APMServiceControl utility take the Component Monitor Id of a Windows Service Monitor on the command line. Since this utility uses WMI to restart the service, we use the service name and credentials defined in the Component Monitor you specified.
Thank you. I understand how that works now. It's not explicit in any of the documentation & making this clear might makes things easier for people who want to use this functionality.
Thanks for calling that out, Gareth. I'm rewriting that section accordingly.
Hi Roger:
Has this documentation been created? I could use the help in understanding this better.
Glenn.
Glenn, if you have some specific questions, please ask away. I updated the Restarting Windows Services with an Alert Action last year to clarify the credentials issue mentioned earlier in this thread, but nothing further.
The one thing I need to clarify in the next revision is this:
You can't just restart any Windows service you want. You can only restart services you are actively monitoring using Orion APM.
Lets say you have an HTTP monitor set up to monitor a web site and want to create an alert action that restarts the IIS w3svc service if the website is down. You can't do that if you're only monitoring the web site. You have to also add a Windows service monitor to monitor the w3svc service. Otherwise, the utility we use to do the service restarting won't know how to find the service to restart.
would be a nice feature to restart a specific service by name though...
i mean the rest, windows can do itself...
but for example, I the webserver in my lan is up but i cannot open the website from my internal lan, first try would be to reset IIS or whatever webserver it is running, even if the service itself is still running it might not do what it is supposed to do.
that would help me soo much actually as we are monitoring the services (which almost never go down) and the symptoms of the service being down, usually a restart of those services will do the trick.