Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to test email notification settings in Operations Manager


View products that this article applies to.

INTRODUCTION

This article describes how to test the notification settings after you configure email notifications for a recipient or for a subscription in Microsoft System Center Operations Manager.

↑ Back to the top


More Information

After you configure email notifications for a recipient or for a subscription in Operations Manager, you may want to test the notification settings to verify that they are configured correctly. To do this, follow these steps.

Step 1: Create a task that logs an event to the event log

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
  1. Start System Center Operations Manager.
  2. Click Authoring, expand Management Pack Objects, and then click Tasks.
  3. In the Actions pane, click Create a new task.
  4. In the Select the type of task to create tree, expand Agent Tasks, and then click Run a script.
  5. In the Select destination management pack list, click a management pack, or leave the Default Management Pack option selected, and then click Next.
  6. In the Task name box, type Test task 1, and then click Select.
  7. In the Look for box, type Windows computer, click Windows Computer in the Target list, and then click OK.
  8. Click Next, and then type testevent.vbs in the Name box.
  9. Type or paste the following code in the Script box.
    Set objSh = CreateObject("WScript.Shell")
    'Write entry to the Application event log
    objSh.LogEvent 4, "Operations Manager test event log entry written successfully." & chr(13)
  10. Click Create.
When this task runs, the following event is logged in the Application log:

Step 2: Create an alert rule that is triggered by the event ID from the task

Create an alert rule that is triggered when the task writes event ID 4 to the Application log. To do this, follow these steps:
  1. In System Center Operations Manager, click Authoring, and then click Rules.
  2. In the Actions pane, click Create a rule.
  3. Expand Alert Generating Rules, expand Event Based, and then click NT Event Log (Alert).
  4. In the Select destination management pack list, click a management pack, and then click Next.
  5. In the Rule name box, type Test rule 1, and then click Select.
  6. In the Look for box, type Windows computer, click Windows Computer in the Target list, and then click OK.
  7. Click Next, leave the default Application entry in the Log name box, and then click Next.
  8. In the Value column that corresponds to Event ID, type 4.
  9. In the Value column that corresponds to Event Source, type WSH.
  10. Click Next, and then click Create.
  11. In the Rules pane, click Test rule 1, and then click Disable.

Step 3: Create a test subscription to match the alert

Step A: Create a test notification recipient

  1. In System Center Operations Manager, click Administration, expand Notifications, and then click Recipients.
  2. In the Actions pane, click New Notification Recipient.
  3. On the General tab, type the user to whom you want to send e-mail notifications. For example, type Example\Administrator.
  4. Click Notification Devices tab, and then click Add.
  5. In the Notification channel list, click E-mail.
  6. In the Delivery address for the selected channel box, type the recipient e-mail address, and then click Next.
  7. Click Next, type test e-mail notification device in the Notification device name box, and then click Finish.
  8. Click OK.

Step B: Subscribe to the alert

  1. In System Center Operations Manager, click Administration, expand Notifications, and then click Subscriptions.
  2. In the Actions pane, click New Notification Subscription.
  3. In the Subscription name box, type test subscription 1, and then click Add
  4. In the Notification Recipients list, click to select the check box of the test notification recipient that you created, and then click OK.
  5. Click Next four times.
  6. On the Alert Criteria page, click to select all the check boxes in the Alerts of any of checked severity box.
  7. In the AND any checked category box, click to clear all the check boxes except the Alert check box.
  8. Click Next two times, and then click Finish.

Step 4: Enable the event rule

Enable the rule that you created in the "Step 2: Create a rule that is triggered by the event ID from the task" section. To do this, follow these steps:
  1. In System Center Operations Manager, click Authoring, and then click Rules.
  2. In the Rules pane, click Test rule 1.
  3. In the Actions pane, click Enable.

Step 5: Run the task to generate the event

Run the task that you created in the "Step 1: Create a task that logs an event to the event log" section. To do this, follow these steps:
  1. In the System Center Operations Console, click Monitoring.
  2. Expand Monitoring, and then click Computers.
  3. In the Computers pane, highlight one computer name.
  4. In the Actions pane, click Test task 1 under Windows Computer Tasks.
  5. In the Run Task - Test task 1 dialog box, click Run.
  6. Verify that Succeeded appears next to Status in the Task Output box, and then click Close.
  7. Examine the Application log to verify that event ID 4 was written to the Application log.
  8. In System Center Operations Manager, click Active Alerts under Monitoring.
  9. Verify that a Test rule 1 alert appears in the Active Alerts pane.
Verify that the recipient received the notification e-mail message.

For more information about how to configure alerts, notifications, and subscriptions in Operations Manager 2007, visit the following Microsoft websites:

↑ Back to the top


Keywords: kbtshoot, kbinfo, kbhowto, kbentirenet, kb

↑ Back to the top

Article Info
Article ID : 934756
Revision : 1
Created on : 1/7/2017
Published on : 7/9/2012
Exists online : False
Views : 381