Ta zasada generuje alerty, jeśli zasada lub monitor próbuje uruchomić proces i próba ta kończy się niepowodzeniem.
W usłudze System Center Management Health próbowano uruchomić plik wykonywalny, ale nie można było utworzyć procesu.
Może to mieć wpływ na pewne aspekty monitorowania lub odnajdywania.
Możliwe przyczyny:
Nie można znaleźć pliku wykonywalnego.
Komputer ma za mało zasobów (np. pamięci), aby uruchomić plik wykonywalny.
Rozszerzenie skryptu nie jest prawidłowo zarejestrowane.
Opis oraz kontekst alertu zawierają informacje wskazujące, której zasady lub którego monitora dotyczy awaria. Następujące łącze spowoduje wyświetlenie wszystkich zdarzeń wskazujących niepowodzenie uruchomienia pliku wykonywalnego:
Wyświetl zdarzenia operacji wsadowych
Po przejrzeniu błędu w kontekście sprawdź następujące elementy:
Czy ścieżka do pliku wykonywalnego istnieje na komputerze.
Czy komputer nie jest nadmiernie wykorzystany.
Sprawdź w Menedżerze zadań, czy jest wystarczająca ilość wolnej pamięci.
Sprawdź w Menedżerze zadań, czy jakieś procesy zajmują cały procesor.
Aby upewnić się, że wszystkie rozszerzenia skryptów są zarejestrowane, postępuj zgodnie z sekcją „Let me fix it myself” (Rozwiążę problem samodzielnie) artykułu 949140 w bazie wiedzy (http://go.microsoft.com/fwlink/?LinkId=181825).
Jeśli pliku wykonywalnego nie można znaleźć, konfiguracja zasady jest nieprawidłowa. Otwórz zasadę, która powodowała odpowiedź, i zmień jej konfigurację, podając prawidłową ścieżkę pliku wykonywalnego, lub zainstaluj plik wykonywalny w systemie docelowym.
Ponadto należy sprawdzić, czy ścieżka plików aplikacji i katalog roboczy nie zawierają błędów oraz czy konto działania ma dostęp do aplikacji lub katalogu.
Target | Microsoft.SystemCenter.HealthService | ||
Category | EventCollection | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Operations Manager |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Default |
Consolidator | ConditionDetection | System.ConsolidatorCondition | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SystemCenter.BatchResponseModule.AlertOnFailedCreateProcess" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</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">21400</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">21401</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<ConditionDetection ID="Consolidator" TypeID="System!System.ConsolidatorCondition">
<Consolidator>
<ConsolidationProperties>
<PropertyXPathQuery>Params/Param[1]</PropertyXPathQuery>
</ConsolidationProperties>
<TimeControl>
<WithinTimeSchedule>
<Interval>300</Interval>
</WithinTimeSchedule>
</TimeControl>
<CountingCondition>
<Count>10</Count>
<CountMode>OnNewItemTestOutputRestart_OnTimerSlideByOne</CountMode>
</CountingCondition>
</Consolidator>
</ConditionDetection>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.BatchResponseModule.AlertOnFailedCreateProcess.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Context/DataItem/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Context/DataItem/Params/Param[2]$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>