This article describes how to test the notification settings after you configure e-mail notifications in Microsoft System Center Operations Manager 2007.
After you configure e-mail notifications for a recipient or for a subscription in Operations Manager 2007, 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.
a.
Start System Center Operations Manager 2007.
b.
Click Authoring, expand Management Pack Objects, and then click Tasks.
c.
In the Actions pane, click Create a new task.
d.
In the Select the type of task to create tree, expand Agent Tasks, and then click Run a script.
e.
In the Select destination management pack list, click a management pack, or leave the Default Management Pack option selected, and then click Next.
f.
In the Task name box, type Test task 1, and then click Select.
g.
In the Look for box, type Windows computer, click Windows Computer in the Target list, and then click OK.
h.
Click Next, and then type testevent.vbs in the Name box.
i.
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 2007 test event log entry written successfully." & chr(13)
j.
Click Create.
When this task runs, the following event is logged in the Application log:
Event Source: WSH Event Category: None Event ID: 4 Date: date Time: time Type: Information User: N/A Computer: ServerName Description: Operations Manager 2007 test event log entry written successfully.
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:
a.
In System Center Operations Manager 2007, click Authoring, and then click Rules.
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:
a.
In the System Center Operations Console, click Monitoring.
b.
Expand Monitoring, and then click Computers.
c.
In the Computers pane, highlight one computer name.
d.
In the Actions pane, click Test task 1 under Windows Computer Tasks.
e.
In the Run Task - Test task 1 dialog box, click Run.
f.
Verify that Succeeded appears next to Status in the Task Output box, and then click Close.
g.
Examine the Application log to verify that event ID 4 was written to the Application log.
h.
In System Center Operations Manager 2007, click Active Alerts under Monitoring.
i.
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 Web site:
Need More Help? Contact a Support professional by E-mail, Online or Phone.
Customer Service For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
Newsgroups Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.