ワークフロー実行時:WMI イベントの WMI クエリの実行失敗

Microsoft.SystemCenter.WmiEventModule.FailedExecution.Alert (Rule)

このルールは、WMI イベント モジュールで実行時エラーが発生した場合にアラートを生成します。

Knowledge Base article:

概要

Operations Manager は WMI クエリまたは WMI イベントに関連するスクリプトを実行できませんでした。

原因

考えられる原因は、次のとおりです。

Operations Manager がコンピューターまたは名前空間に接続できませんでした。これは、アクセス許可の問題や無効な WMI 名前空間が使用されたことが原因です。

Operations Manager は WMI クエリを実行できませんでした。これは、アクセス許可または無効な WMI クエリが原因です。

Windows Server 2008 を実行しているコンピューターで WMI エラーが発生する場合は、 サポート技術情報の記事 958807 (http://go.microsoft.com/fwlink/?LinkID=133791) で説明されている WMI の既知の問題が原因の可能性があります。

解決方法

この問題の原因の詳細については、関連アラートのコンテキストを調べてください。

アラートのコンテキストには、この問題の原因が接続、アクセス許可、またはクエリのどれであるかが詳しく示されています。

接続の問題の場合は、DCOM が有効になっていることを確認します。

アクセス許可の問題の場合は、Operations Manager 実行アカウントに WMI にアクセスするための適切なアクセス許可があることを確認します。

クエリの問題の場合は、WMI スクリプトを含んでいるルールまたはモニターを調べ、変更を加えて適切な措置を取ります。

詳細については、 サポート技術情報の記事 958807 (http://go.microsoft.com/fwlink/?LinkID=133791) も確認してください。更新プログラムが利用できる場合は、このコンピューターに適用します。

次のリンクをクリックすると、WMI イベント コンポーネントでの問題を示すすべてのイベントが表示されます。

WMI プロバイダー イベントの表示

外部

WMI のトラブルシューティングの詳細については、 http://go.microsoft.com/fwlink/?LinkId=158224 を参照してください。

WMI 診断ユーティリティを http://go.microsoft.com/fwlink/?LinkId=158226 からダウンロードすることもできます。WMI 診断ユーティリティは、コンピューターの WMI サービスの現在の状態を解決するために記述された VBScript です。

Element properties:

TargetMicrosoft.SystemCenter.HealthService
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
Operation Manager は WMI イベントの WMI クエリを実行できませんでした
{0}
Event LogOperations Manager

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Consolidator ConditionDetection Microsoft.SystemCenter.Overridable.ConsolidatorCondition Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SystemCenter.WmiEventModule.FailedExecution.Alert" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health Service Modules</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[1]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/ManagementGroup/Name$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">10353</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">10357</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">10359</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">10361</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">10363</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<ConditionDetection ID="Consolidator" TypeID="Microsoft.SystemCenter.Overridable.ConsolidatorCondition">
<ConsolidationProperties>
<PropertyXPathQuery>Params/Param[1]</PropertyXPathQuery>
<PropertyXPathQuery>Params/Param[2]</PropertyXPathQuery>
<PropertyXPathQuery>EventDisplayNumber</PropertyXPathQuery>
</ConsolidationProperties>
<IntervalSeconds>3600</IntervalSeconds>
<Count>3</Count>
</ConditionDetection>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.WmiEventModule.FailedExecution.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Context/DataItem/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$EventData/Data[2]$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>