Microsoft KB Archive/298484

= How to use a Timed Event processing rule to check the status of a service =

Article ID: 298484

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Operations Manager 2000 Service Pack 1
 * Microsoft Operations Manager (MOM) 2005

-



This article was previously published under Q298484



SUMMARY
This article explains how to continuously check the status of a service by using a Timed Event processing rule that responds with a script to report the status of the service.



MORE INFORMATION
The Timed Event processing rule responds with a script, which generates events that are based on the result of the rule's service query. You can also create an appropriate alert that reports on these events.

How to create a Timed Event processing rule

 * 1) In Microsoft Management Console (MMC), expand Rules, expand Processing Rule Groups, and then expand the processing rule group that you want to use.
 * 2) Right-click the Event Processing Rule folder, and then click Alert on or Respond to an Event.
 * 3) Click New. In the Select Provider Type window that appears, the Provider Type changes to Timed Event. Click OK after you make a selection.
 * 4) In the Provider box, click Schedule every 15 minutes, and then click Finish to close the Timed Event Provider Properties - Schedule dialog box.
 * 5) Click Next, specify a schedule for processing the rule, and then click Next.
 * 6) Click Add, and then click Launch a script.
 * 7) Under Script name, click Service Check Status, and then select the parameter that is labeled Service Name in the Script parameters box.
 * 8) Click Edit Script Parameters, change the value to include the name of the service that you want to monitor, and then click OK. Click OK again, and then click Next.
 * 9) Add any knowledge-base information that is relevant to the rule, click Next, name the rule, and then click Finish.

How to Create an Alert on the Status of a Service
 In the MMC, expand Rules, expand Processing Rule Groups, and then expand the processing rule group where you defined the Timed Event script. Right-click the Event Processing Rule folder, and then click Alert on or Respond to an Event. In the Provider box, click Script-generated Data. The provider type changes to Generic. Click Next, and then enter values in the Criteria dialog box:  Click from Source, and then enter Service Check Status . Click with Event ID, and then enter 1001 .</ol> </li> Click Next, and then click Next again.</li> Click to select Generate an Alert, assign the values that you want to use, and then click Next.</li> Add any knowledge-base information that is relevant to the rule, click Next, name the rule, and then click Finish.</li></ol>

How to create a Timed Event processing rule

 * 1) In MOM 2005 Administrator Console, expand Management Packs, expand Rule Groups, and then expand the processing rule group that you want to use.
 * 2) Right-click Event Rules, and then click Alert on or Respond to an Event.
 * 3) Click New.
 * 4) In the Select Provider Type dialog box, click Timed Event, and then click OK.
 * 5) In the Timed Event Provider Properties - Schedule dialog box, leave the default settings, and then click Finish.
 * 6) Click Next, specify a schedule for processing the rule, and then click Next.
 * 7) Leave the default settings in the Event Rule Properties - Alert Suppression dialog box, and then click Next.
 * 8) Click Add, and then click Launch a script.
 * 9) Under Script name, click  , and then select the parameter that is labeled Service Name in the Script parameters box.
 * 10) Click Edit Parameter, change the value to include the name of the service that you want to monitor, and then click OK. Click OK again, and then click Next.
 * 11) Add any knowledge-base information that is relevant to the rule, click Next, name the rule, and then click Finish.

How to create an alert on the status of a service
<ol> In MOM 2005 Administrator Console, expand Management Packs, expand Rule Groups, and then expand the processing rule group that you want to use.</li> Right-click Event Rules, and then click Alert on or Respond to an Event.</li> In the Provider name list, select Script-generated Data.

The Provider type changes to Generic.</li> Click Next, and then enter values in the Event Rule Properties - Criteria dialog box: <ol style="list-style-type: lower-alpha;"> Click from source, and then type .</li> Click with event ID, and then type 1001 .</li></ol> </li> Click Next, specify a schedule for processing the rule, and then click Next.</li> Click to select Generate alert, assign the values that you want to use, and then click Next.</li> Leave the default settings in the Event Rule Properties - Alert Suppression dialog box, and then click Next.</li> Add any knowledge-base information that is relevant to the rule, click Next, name the rule, and then click Finish.</li></ol>

Keywords: kbenv kbhowto kbinfo kbsetup KB298484

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.