How to use a Timed Event processing rule to check the status of a service (298484)



The information in this article applies to:

  • Microsoft Operations Manager 2000
  • Microsoft Operations Manager 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.

For Microsoft Operations Manager 2000

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

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

For Microsoft Operations Manager 2005

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 Service Check Status, 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

  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. In the Provider name list, select Script-generated Data.

    The Provider type changes to Generic.
  4. Click Next, and then enter values in the Event Rule Properties - Criteria dialog box:
    1. Click from source, and then type Service Check Status.
    2. Click with event ID, and then type 1001.
  5. Click Next, specify a schedule for processing the rule, and then click Next.
  6. Click to select Generate alert, assign the values that you want to use, and then click Next.
  7. Leave the default settings in the Event Rule Properties - Alert Suppression dialog box, and then click Next.
  8. Add any knowledge-base information that is relevant to the rule, click Next, name the rule, and then click Finish.

Modification Type:MajorLast Reviewed:8/30/2005
Keywords:kbenv kbhowto kbinfo kbsetup KB298484 kbAudITPRO