注意:本文采用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:
A Run As account that provides credentials to the Notification Account Run As profile.
A notification channel which defines the format for the notification and the method by which the notification is sent.
A notification subscriber which defines the recipients and the schedule for sending notifications to the subscriber.
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.
On the Introduction page, click Next.
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.
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的操作员账户。
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.
On the Distribution tab, click Add.
In the Computer Search window, click Search to display a name of available computers.
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.
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.
这个通知账户,是系统默认的。
On the Introduction page, click Next.
On the General Properties page, click Next.
On the Run As Accounts page, click Add.
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.
Click Save. When the association is completed, click Close to close the wizard.
--------------------------------分割线-----------------------------------------------------
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).
Type a name for the channel, such as SMTP channel and optionally provide a description. Click Next.
In the SMTP servers area, click Add.
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.
Note
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.
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.
Click Finish, and then click Close.
--------------------------------分割线-----------------------------------------------------
备注:订户就是需要接收电子邮件警报的人员。事先手动设定的收件人。
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.
On the Description page, type a display name for this subscriber.
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.
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.
On the Describe the Subscriber Address page, enter a name to identify the subscriber address, and then click Next.
On the Provide the Channel and Delivery Address page, perform the following steps:
In Channel Type, select between email, instant message, text message, or command for the method of notification.
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.
In Delivery address for the selected channel, enter the address to which the notification should be sent.
Click Next.
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.
Click Add to define another subscriber address. Otherwise, click Finish, and then click Close.
The new subscriber displays in the Subscribers pane.
可以添加多个订户,将警报发送给多个人。
备注:订阅就是通过订阅的方式,我们使用刚才创建的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.
On the Description page, in Subscription name, type a descriptive name for the subscription, type a short description, and then click Next.
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.
这里我设置当警报类型为严重级别,类型为新的警报时,将发送警报邮件。
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.
Click Next.
On the Channels page, click Add to add a channel that is already defined, or click New to add a new channel.
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.
Review the settings on the Summary page, click Finish, and then click Close.
the end.
本文出自 “曾垂鑫的技术专栏” 博客,谢绝转载!