Monitor Service


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.

Details Tab

SettingsConfiguration Instructions
ComputerType 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.
ServiceType the name of the service that you are monitoring. To open the Choose a Service dialog box, click the ellipsis (...) button.
Service is startedSelect to invoke the Monitor Service activity when the selected service has been started.
Service is stopped or pausedSelect 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 serviceSelect 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.
Test frequencySelect the amount of time to wait between each time that the Monitor Service activity checks the status of the service.

Published Data

The following table lists the published data items.

Service display nameThe name of the service as it appears in the Windows Services control panel utility.
Service real nameThe name of the file that the service is running.
Service statusThe current status of the service.
Service computerThe name of the computer where the service is located.
Test intervalThe number of seconds between each check of the service status.
Restart stopped serviceDetermines whether the service is automatically restarted when it is found to be stopped. This value can be either True or False.