Monitor Service
Applies To: Opalis 6.3
The Monitor Service object triggers Policies when a service has been started or stopped. You can use the Monitor Service object to monitor services on any remote computer. This object uses a satellite license.
Use the Monitor Service object to create Policies 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 object with a Start/Stop Service object to automatically restart the service.
Configuring the Monitor Service Object
To configure the Monitor Service object you will need to know which computer hosts the service that you are monitoring and which service you want to monitor. You will also need to determine whether the Policy will be run when the service is started or stopped.
To configure the Monitor Service object
From the Objects pane, drag a Monitor Service object to the active Policy.
Double-click the Monitor Service object icon. The Properties dialog opens.
For information about the settings on the Details tab, see the following table.
For information about the settings on the General tab, the Run Behavior tab, and other tabs if applicable, see Common Tabs.
Details Tab
Element | Configuration Instructions |
---|---|
Computer |
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 Action Server that runs this object must have the appropriate rights to monitor the services on that computer. |
Service name |
Type the name of the service that you are monitoring. You can also browse for the service using ellipsis ( ... ) button. |
Service is started |
Select to trigger the Monitor Service object when the selected service has been started. |
Service is stopped or paused |
Select to trigger the Monitor Service object 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 object to be triggered regardless of whether you have specified to trigger when the Service is started or Service is stopped or paused. |
Restart stopped service |
Select to restart a service that has stopped. We recommend that you use the Start/Stop Service object instead of selecting this option. |
Test frequency |
Select the amount of time to wait between each time that the Monitor Service object checks the status of the service. |
Monitor Service Published Data
The following table lists the element names and descriptions of the data published by this object. For information about the published data elements that are common to all objects, see Policy Workflow Rules.
Element Name | Description |
---|---|
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 executable file that the service is running. |
Service status |
The current status of the service. |
Service computer |
The name of the computer where the service is located. |
Test interval |
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. |