SCOM2012部署系列之十五:配置电子邮件警报通知

注意:本文采用technet官方原版的步骤(因为觉得原版的how to do已经写得非常详细了,但是美中不足的是缺少图片,容易把中国人搞晕),这里我添加了中文说明和中文原版的图片,方便大家操作

In System Center 2012 �C Operations Manager, when an alert is generated, Operations Manager can notify designated individuals by email, instant message (IM), or text message (SMS)(SCOM发送警报的四种方式). Notifications can also run commands automatically when an alert is raised on a monitored system.

本文我们使用电子邮件发送警报的方式来说明整个Subscribing to Alert Notifications的过程

--------------------------------分割线-----------------------------------------------------

为了实现这个过程,我们需要采用下面四个配置步骤。

A notification requires the following elements:

  1. A Run As account that provides credentials to the Notification Account Run As profile.

  2. A notification channel which defines the format for the notification and the method by which the notification is sent.

  3. A notification subscriber which defines the recipients and the schedule for sending notifications to the subscriber.

  4. A notification subscription which defines the criteria for sending a notification, the channel to be used, and the subscribers to receive the notification.

An Operations Manager administrator must configure the Run As account for notifications and define the notification channels. An Operations Manager administrator, advanced operator, or operator can create a subscriber and a subscription.

--------------------------------分割线-----------------------------------------------------

下面我们来看看四个步骤的配置过程。

--------------------------------分割线-----------------------------------------------------

(一)创建和配置通知的操作员账户(To create and configure the notification action account)

Log on to the computer with a user account that is a member of the Operations Manager Administrators role.

In the Operations console, click Administration.

In the Administration workspace, right-click Security, and then click Create Run As Account. Use the Create Run As Account Wizard to create an account to use as the Notification action account, which is used to send the notifications.

截图00

On the Introduction page, click Next.

截图01

On the General Properties page, select Windows in the Run As Account type list, and then in Display name, type Notification action account. Click Next.

截图02

On the Credentials page, type the information for the user name, password, and domain of the user account that to be used for notifications. Click Next.

这里我以管理员为例,来做演示,实际生产环境,可以选择使用SCOM的操作员账户。

截图03

截图05

Select the More secure distribution security option. For more information on this option, see Distribution and Targeting for Run As Accounts and Profiles.

Click Create.

In the navigation pane, click Accounts under Run As Configuration.

In the details pane, right-click Notification action account, and then click Properties.

截图06

On the Distribution tab, click Add.

截图07

In the Computer Search window, click Search to display a name of available computers.

截图08

Select the server or servers to distribute the credentials to, click Add, and then click OK to close the search window.

Click OK to close the properties window.

截图09

In the navigation pane, click Profiles under Run As Configuration.

Right-click Notification Account and click Properties, which will open the Run As Profile Wizard.

这个通知账户,是系统默认的。

截图10

On the Introduction page, click Next.

截图11

On the General Properties page, click Next.

截图12

On the Run As Accounts page, click Add.

截图13

In the Add a Run As Account window, in the Run As account dropdown menu, select the Run As account that you created earlier in this procedure. Accept the default of All targeted objects and then click OK.

截图14

截图15

Click Save. When the association is completed, click Close to close the wizard.

截图16

--------------------------------分割线-----------------------------------------------------

(二)开启电子邮件通知的通道(To enable an email notification channel)

Log on to the computer with a user account that is a member of the Operations Manager Administrators role.

In the Operations console, click Administration.

In the navigation pane, under Notifications, right-click Channels. Click New channel and then click E-mail (SMTP).

截图17

Type a name for the channel, such as SMTP channel and optionally provide a description. Click Next.

截图18

In the SMTP servers area, click Add.

截图19

In the Add SMTP Server dialog box, type the fully qualified domain name (FQDN) of a Simple Mail Transfer Protocol (SMTP) server, type the port number, select the authentication method used by the SMTP server, and then click OK.

截图20

clearNote

You can add one or more additional servers to act as backup servers. If the primary SMTP server is unavailable, notifications are sent through the secondary server.

Type the Return Address that should appear on email notifications, and then in the Retry interval list, select the number of minutes to wait before trying to resend a notification to the primary SMTP server. Click Next.

截图21

In the Default e-mail notification format area, specify the E-mail subject and E-mail message text or leave the default selections, select the Importance level that you want the emails sent with, and then specify the Encoding type. You can click the right arrow next to the E-mail subject and E-mail message boxes for a full list of available variables. For more information, see How to Customize Message Content for Notifications.

截图22

Click Finish, and then click Close.

截图23

截图24

--------------------------------分割线-----------------------------------------------------

(三)创建订户(To create a notification subscriber as an administrator)

备注:订户就是需要接收电子邮件警报的人员。事先手动设定的收件人。

Log on to the computer with an account that is a member of the Operations Manager Administrators role.

In the Operations console, click Administration.

Under Notifications, right-click Subscribers, and click New subscriber.

截图25

On the Description page, type a display name for this subscriber.

截图26

On the Schedule Notifications page, click Always send notifications, or Notify only during the specified times and specify when notifications should be sent to this subscriber. The options available allow you to:

  • Limit notifications to a specific range of dates.

  • Specify that notifications are sent only during certain hours or except for certain hours.

  • Specify that notifications will be sent only on certain days of the week.

  • Set a time zone to be used for the subscriber.

clear[4]截图28

Note

The settings on the Schedule Notifications page apply globally to the subscriber. You can also specify unique schedule settings for each address that you add to the subscriber, in the following steps. For example, you can add one email address that receives the notifications during business hours and add a second email address that receives the notifications outside of business hours.

On the Subscriber Addresses page, click Add to add subscriber addresses to the notification.

截图29

On the Describe the Subscriber Address page, enter a name to identify the subscriber address, and then click Next.

截图30

On the Provide the Channel and Delivery Address page, perform the following steps:

  1. In Channel Type, select between email, instant message, text message, or command for the method of notification.

  2. If you select command for channel type, in Command Channel, select the name of a command channel. The command channel must be created before you create the subscriber. Skip the next step, because no delivery address is specified for a command channel.

  3. In Delivery address for the selected channel, enter the address to which the notification should be sent.

  4. Click Next.

截图31

On the Schedule Notifications page, click Always send notifications, or Notify only during the specified times and click Add to create a date range, and then click Next.

截图32

Click Add to define another subscriber address. Otherwise, click Finish, and then click Close.

截图33

The new subscriber displays in the Subscribers pane.

可以添加多个订户,将警报发送给多个人。

截图34

截图35

截图36

--------------------------------分割线-----------------------------------------------------

(四)创建一个订阅(To create a notification subscription as an administrator)

备注:订阅就是通过订阅的方式,我们使用刚才创建的SMTP通道,然后使用订阅向导配置需要订阅的内容,并发送给我们刚才设置的订户。

Log on to the computer with an account that is a member of the Operations Manager Administrators role.

In the Operations console, click Administration.

In the Administration workspace, expand Notifications, right-click Subscriptions, and then click New subscription. The Notification Subscription Wizard starts.

截图37

On the Description page, in Subscription name, type a descriptive name for the subscription, type a short description, and then click Next.

截图38

On the Subscription Criteria page, you can set conditions that will determine when notifications will be sent to specified subscribers. If you do not set conditions, notifications will be sent for all alerts. Click Next.

截图40

截图41

这里我设置当警报类型为严重级别,类型为新的警报时,将发送警报邮件。

截图39

clear[6]Note

You will also receive notifications when an alert is updated.

On the Subscribers page, click Add to add subscribers who are already defined, or click New to add new subscribers.

截图42

截图43

截图44

Click Next.

截图45

On the Channels page, click Add to add a channel that is already defined, or click New to add a new channel.

截图46

截图47

In the Alert aging section on the Channels page, select to send notifications without delay or set a value in minutes that notification should be delayed unless conditions remain unchanged, and then click Next.

截图48

Review the settings on the Summary page, click Finish, and then click Close.

截图49

截图50

截图51

the end.

本文出自 “曾垂鑫的技术专栏” 博客,谢绝转载!

你可能感兴趣的:(System,2012,sp1,center,SCOM,电子邮件通知)