Czas wykonywania przepływu pracy: nie można uruchomić kwerendy usługi WMI w celu uzyskania zdarzeń WMI

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

Ta zasada generuje alerty w razie błędów czasu wykonywania modułu zdarzeń WMI.

Knowledge Base article:

Podsumowanie

Program Operations Manager nie może uruchomić kwerendy lub skryptu usługi WMI związanych ze zdarzeniami WMI.

Przyczyny

Możliwe przyczyny są następujące:

Program Operations Manager nie może połączyć się z komputerem lub obszarem nazw. Przyczyną mogą być problemy z uprawnieniami lub użycie nieprawidłowego obszaru nazw usługi WMI.

Program Operations Manager nie może uruchomić kwerendy usługi WMI. Przyczyną mogą być problemy z uprawnieniami lub nieprawidłowa kwerenda usługi WMI.

Jeśli awaria usługi WMI wystąpiła na komputerze z systemem Windows Server 2008, może to być spowodowane znanym problemem z usługą WMI opisanym w artykule nr 958807 w bazie wiedzy Knowledge Base (http://go.microsoft.com/fwlink/?LinkID=133791).

Rozwiązania

Więcej szczegółów dotyczących przyczyn tego problemu można znaleźć, sprawdzając kontekst skojarzonego alertu.

Na podstawie kontekstu alertu można ustalić, czy problem dotyczył połączenia, uprawnień, czy kwerendy.

W przypadku problemu z połączeniami upewnij się, że jest włączony model DCOM.

W przypadku problemów z uprawnieniami upewnij się, że konto Uruchom jako programu Operations Manager ma odpowiednie uprawnienia dostępu do usługi WMI.

W razie problemu z kwerendą sprawdź regułę lub monitor zawierające skrypt usługi WMI i zmodyfikuj je w odpowiedni sposób.

Sprawdź również informacje zawarte w artykule nr 958807 w bazie wiedzy Knowledge Base (http://go.microsoft.com/fwlink/?LinkID=133791). Jeśli jest to wskazane, zainstaluj aktualizację na tym komputerze.

Kliknięcie następującego łącza spowoduje wyświetlenie wszystkich zdarzeń wskazujących możliwy problem ze składnikiem Zdarzenie WMI:

Wyświetl zdarzenia dostawcy WMI

Zewnętrzne

Więcej informacji na temat rozwiązywania problemów dotyczących WMI można znaleźć pod adresem http://go.microsoft.com/fwlink/?LinkId=158224.

Można również pobrać narzędzie diagnostyczne WMI spod adresu http://go.microsoft.com/fwlink/?LinkId=158226. Narzędzie to jest skryptem VBScript opracowanym w celu ułatwienia rozwiązywania problemów z bieżącym stanem usługi WMI na komputerze.

Element properties:

TargetMicrosoft.SystemCenter.HealthService
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
Program Operations Manager nie może uruchomić kwerendy usługi WMI w celu uzyskania zdarzeń 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>