Updated: May 13, 2016
Applies To: System Center 2012 SP1 - Orchestrator, System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator
The Monitor Service activity invokes runbooks when a service has been started or stopped. You can use the Monitor Service activity to monitor services on any remote computer. Use the Monitor Service activity to create runbooks that take corrective actions when services unintentionally shut down. For example, if a SQL Server service that hosts critical data stops responding, you can use a Monitor Service activity with a Start/Stop Service activity to automatically restart the service.
Before you configure the Monitor Service activity, you need to determine the following:
Which computer hosts the service that you are monitoring
Which service you want to monitor
Whether the runbook will run when the service is started or stopped
Use the following information to configure the Monitor Service activity.
Type the name of the computer where the service that you are monitoring is located. You can also browse for the computer using the ellipsis (...) button. The runbook server that runs this activity must have the appropriate rights to monitor the services on that computer.
Type the name of the service that you are monitoring. To open the Choose a Service dialog box, click the ellipsis (...) button.
Service is started
Select to invoke the Monitor Service activity when the selected service has been started.
Service is stopped or paused
Select to invoke the Monitor Service activity when the selected service has been stopped or paused.
When a service is restarted using the Windows Service Control Manager it is stopped and then started in succession. This will cause the Monitor Service activity to be invoked regardless of whether you have specified to invoke when the Service is started or Service is stopped or paused.
Restart stopped service
Select the Restart stopped service box to restart a service that has stopped. You can also use the Start/Stop Service activity instead of selecting this option.
Select the amount of time to wait between each time that the Monitor Service activity checks the status of the service.
The following table lists the published data items.
Service display name
The name of the service as it appears in the Windows Services control panel utility.
Service real name
The name of the file that the service is running.
The current status of the service.
The name of the computer where the service is located.
The number of seconds between each check of the service status.
Restart stopped service
Determines whether the service is automatically restarted when it is found to be stopped. This value can be either True or False.