Quantcast
Channel: THWACK: All Content - Server & Application Monitor
Viewing all articles
Browse latest Browse all 12281

Restarting windows services with SAM

$
0
0

Hi all

 

Had a requirement passed to me to monitor two services, that run on 10 servers (same 2 services on each server). The requirement also states that SAM needs to restart any of the services if they are stopped for longer than 5 minutes.

 

So i created a basic application template with the Windows service monitors in, and assigned WMI credentials, then assigned it to the 10 servers. Great so far and the monitoring is sorted.

 

Looking into how to restart the services if they stop, it seems a very clunky process, APMServiceControl.exe which seems to be recommended is very clunky. It wants to know the component ID, of which there is there going to be 20? (10 servers x 2 services)?

 

Then also i apparently need to restart these based on an advanced alert, getting the action to run an external program, then here is the other issue, there isn't a way of specifying network credentials that runs this external program action.........

 

It just seems annoying i can use the orion web console to click on the component and manually start the monitored service with one click. But i cant just set it to auto-start the service if stopped from there?

 

Has anyone managed to set up what i am trying to do? Is there a way i can do it with less hassle?

 

Thanks in advance


Viewing all articles
Browse latest Browse all 12281

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>