Ta zasada generuje alerty w razie porzucenia odpowiedzi wsadowych.
Agent programu Operations Manager nie może uruchomić polecenia lub skryptu w ramach reguły lub monitora z uwagi na niewystarczające zasoby systemowe.
Może to mieć wpływ na pewne aspekty monitorowania lub odnajdywania.
Możliwe przyczyny:
Agent powoduje uruchamianie zbyt wielu skryptów lub poleceń.
Wykonywanie skryptów lub poleceń trwa zbyt długo.
Skrypty lub polecenia są uruchamiane zbyt często.
Komputer ma za mało zasobów (np. pamięci) do uruchamiania polecenia lub skryptu.
Opis oraz kontekst alertu zawierają informacje wskazujące, której zasady lub którego monitora dotyczy awaria. Mogą jednak występować również awarie innych zasad lub monitorów. Poniższe łącze służy do wyświetlenia wszystkich zdarzeń wskazujących niepowodzenie uruchomienia polecenia lub skryptu:
Wyświetl zdarzenia skryptów
Po wyświetleniu błędu w kontekście rozważ, czy można zmniejszyć częstotliwość uruchamiania skryptu lub polecenia.
Upewnij się, że komputer nie jest nadmiernie wykorzystywany.
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.
Przyczyną może również być planowanie jednoczesnego uruchamiania zbyt wielu procesów. Może być to wynikiem „burzy zdarzeń” lub błędnej konfiguracji czasomierza. W obu przypadkach konieczne jest zbadanie konfiguracji zasady w celu ustalenia, dlaczego skrypt jest uruchamiany zbyt często. Przeważnie należy zmienić konfigurację, na przykład zwiększając interwał skryptu.
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 | Microsoft.SystemCenter.Overridable.ConsolidatorCondition | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SystemCenter.BatchResponseModule.AlertOnDroppedResponses" 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">21410</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">21411</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>
<AlertName/>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.BatchResponseModule.AlertOnDroppedResponses.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Context/DataItem/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Context/DataItem/Params/Param[2]$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>