OpsMgr 証明書の有効期限

Microsoft.SystemCenter.SCOM.Certificate.Expiry (Rule)

OpsMgr 証明書の有効期限が間もなく切れる場合にアラートを生成するルール

Knowledge Base article:

概要

このアラートは、OpsMgr 証明書の有効期限が間もなく切れることを示します。

原因

OpsMgr 証明書の有効期限が間もなく切れます。

解決方法

新しい OpsMgr 証明書をインポートします。

Element properties:

TargetMicrosoft.Windows.Computer
CategoryAlert
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
RemotableFalse
Alert Message
OpsMgr 証明書の有効期限が間もなく切れます
OpsMgr 証明書は {0} 日後に有効期限が切れます

Member Modules:

ID Module Type TypeId RunAs 
DataSource DataSource Microsoft.SystemCenter.SCOM.Certificate.Expiry.DataSourceModule Default
CD ConditionDetection System.ExpressionFilter Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SystemCenter.SCOM.Certificate.Expiry" Target="Windows!Microsoft.Windows.Computer" Enabled="false" ConfirmDelivery="true" Priority="Normal" DiscardLevel="100" Remotable="false">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DataSource" TypeID="Microsoft.SystemCenter.SCOM.Certificate.Expiry.DataSourceModule">
<TimeoutSeconds>600</TimeoutSeconds>
<AlertBeforeNumDays>7</AlertBeforeNumDays>
<IntervalSeconds>86400</IntervalSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Boolean">Property[@Name='GenerateAlert']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Boolean">true</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>2</Severity>
<AlertName/>
<AlertDescription/>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.SCOM.Certificate.Expiry.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Property[@Name="ExpiryDays"]$</AlertParameter1>
</AlertParameters>
</WriteAction>
</WriteActions>
</Rule>