无效的收件人地址事件警报规则

Microsoft.SystemCenter.Notification.InvalidNotificationRecipientAddress.Alert (Rule)

每当系统找到无效的通知收件人地址时此规则就会发出警报

Knowledge Base article:

摘要

未成功传递通知。 这是由于订阅中的收件人地址无效。

原因

创建通知收件人时在收件人向导中输入的地址不正确。 通知子系统无法将通知发送至指定地址。 通知未被传递到此地址。

解决方法

检查与地址关联的收件人。 为收件人提供的地址可能不正确、无效或输入错误。 无效的地址列在警报描述中。 有效电子邮件和 IM 地址是诸如 [email protected] 之类的有效电子邮件地址。对于 SMS,有效地址为如下格式的电话号码:+ <国家/地区代码> <Area code> <电话号码>。 例如,+14258828080

Element properties:

TargetMicrosoft.SystemCenter.AlertNotificationSubscriptionServer
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityHigh
RemotableTrue
Alert Message
收件人地址无效
收件人地址“{1}”无效。 不能通过“{0}”协议将通知发送到此收件人。 规则 ID: {2}
Event LogOperations Manager

Member Modules:

ID Module Type TypeId RunAs 
EventDS DataSource Microsoft.Windows.EventProvider Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SystemCenter.Notification.InvalidNotificationRecipientAddress.Alert" Enabled="true" Target="Microsoft.SystemCenter.AlertNotificationSubscriptionServer" ConfirmDelivery="false">
<Category>Alert</Category>
<DataSources>
<DataSource ID="EventDS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>.</ComputerName>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Health Service Modules</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Target/ManagementGroup/Name$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<XPathQuery Type="String">Params/Param[1]</XPathQuery>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>31500</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.Notification.InvalidNotificationRecipientAddress.Alert.Message"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Params/Param[5]$</AlertParameter1>
<AlertParameter2>$Data/Params/Param[7]$</AlertParameter2>
<AlertParameter3>$Data/Params/Param[2]$</AlertParameter3>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Params/Param[5]$</SuppressionValue>
<SuppressionValue>$Data/Params/Param[7]$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>