New to SolarWinds NPM and APM. Looking for simple method to monitor status of Windows application services on server nodes, send e-mail when they are down and to attempt restart of these stalled or stopped services.
Hi Mark,
First create a template using the browsing method and assign it to the desired nodes:
For details about creating the template, see "To create a new template using the browsing method:" at: http://www.solarwinds.com/NetPerfMon/SolarWinds/OrionAPMAGCreatingNewTemplates.htm.
Set up an alert action to restart services that are down and send email:
For more information about restarting windows services with an alert action, see the documentation "Restarting Windows Services with an Alert Action" at: http://www.solarwinds.com/NetPerfMon/SolarWinds/OrionAPMAGRestartingWindowsServicesWithAlertAction.htm.
Hope this helps,
Mike
can we gather those information by giving the credentials of local computer admin of severs
As long as the credential is a valid administrator on the target node, it should not matter whether you use a local or domain admin. Are you receiving some sort of error, and if so, what?
NOPE I DIDNT GET ANY ERROR MESSAGE AND IT DIDNT RETURN ANY DATA TOO
Mike,
Sorry for the delay in response as I have to build quite a few APM instances before end of year. What you provided hit the target and has been very helpful. '
Thanks...
Hi Mark,First create a template using the browsing method and assign it to the desired nodes:In the APM Settings, click Find Processes, Services, and Performance Counters. Select the component monitor type: Windows Service Monitor. Click NEXT. Browse the list of services and check the boxes for the services to monitor. Adjust thresholds as desired. Click NEXT. Ensure that New Application Monitor Template Name is selected and then enter a name for your new template, for example CustomWindowsServices. Click NEXT. Select the boxes for the desired nodes to monitor and click NEXT. Click OK, CREATE to create the assigned application monitor. For details about creating the template, see "To create a new template using the browsing method:" at: http://www.solarwinds.com/NetPerfMon/SolarWinds/OrionAPMAGCreatingNewTemplates.htm. Set up an alert action to restart services that are down and send email:Click Start > Programs > SolarWinds Orion > Alerting, Reporting, and Mapping > Advanced Alert Manager. Click Configure Alerts. Scroll to the bottom of the list in the Manage Alerts dialog, and click Restart a service. With Restart a service highlighted, click Edit. Select the Trigger Actions tab and then click Add New Action. Select Send an E-Mail / Page and click OK.Complete the e-mail info and click OK. Click OK. Click Done. For more information about restarting windows services with an alert action, see the documentation "Restarting Windows Services with an Alert Action" at: http://www.solarwinds.com/NetPerfMon/SolarWinds/OrionAPMAGRestartingWindowsServicesWithAlertAction.htm.Hope this helps,Mike
This was useful for me, except that it appears that the logic step in the alert is missing. Don't we need to create a trigger to test for the condition of the Windows Service (Up, Down, etc.), as well as identify the service that needs to be restarted? Once we have both of those, then use that to determine if the alert should be sent, and also the restart initiated? Isn't this needed order for the ${ComponentId} variable to know which service to restart, which is used in the following command:
APMServiceControl.exe ${ComponentId}
I am new to the APM world, so I may not be thinking correctly, but if someone could elaborate, that would be helpful.
You are correct, sort of. The step you think is missing is the one where you need to set a trigger condition. However, this particular alert is predefined. You can observe that the trigger condition is already set by clicking on the Trigger Condition tab in the Alert Manager.
The links below will get you out of the woods and away from the monsters that lurk:
I posted on this problem earlier but then saw my own error on the alert part anyway. I can now get the alert (e-mail alert) but the service does not reload on the trigger which
is setup as shown. Any idea what I am doing wrong here? Thanks much for any input.
is.