Monitorowanie procesów: Duża liczba dojść

Microsoft.Windows.Server.10.0.ProcessHandleCount.Alert (Rule)

Ta reguła generuje alert, gdy zbyt szybko zwiększa się liczba dojść.

Knowledge Base article:

Podsumowanie

Ta reguła generuje alert, gdy zbyt szybko zwiększa się liczba dojść.

Uwaga: Jeśli próg dla tej reguły różni się od odpowiadającego mu progu dla reguły „Monitorowanie procesów: Zbieranie danych o stanie kondycji”, może to doprowadzić do niespójności między alertami i stanami kondycji procesów.

Aby uniknąć generowania niepotrzebnych alertów, zaimplementowano minimalny próg dla reguły. Domyślna wartość minimalnego progu wynosi 15%. Próg można zmienić na dowolną wartość za pośrednictwem przesłonięć dla reguły w konsoli programu Operations Manager, ale jeśli zostanie on zmieniony na wartość mniejszą niż 15%, obowiązującym progiem domyślnie będzie 15%.

Użytkownik może zmienić minimalny próg, tworząc wartość rejestru DWORD (32-bitową) MinimalHandleCountIncreaseThreshold za pomocą odpowiedniego agenta i pod odpowiednim kluczem. Obowiązujący próg będzie równy maksymalnie dwóm wartościom: progowi domyślnemu/zastąpionemu w konsoli programu Operations Manager i progowi minimalnemu ustawionemu w rejestrze.

Do ustawienia progu minimalnego służy następujący klucz rejestru:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Modules\Global\BaseOSProcessMonitoring

Element properties:

TargetMicrosoft.Windows.Server.10.0.ProcessMonitoring.ProcessSeed
CategoryCustom
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.Server.10.0.Process.HandleCountAlerting.DataSource Microsoft.Windows.Server.10.0.RunAs.CollectionRules
GenerateAlert WriteAction Microsoft.Windows.Server.10.0.GenerateAlertWriteAction Default
WA WriteAction Microsoft.Windows.Server.10.0.CloseAlertWriteAction Default

Source Code:

<Rule ID="Microsoft.Windows.Server.10.0.ProcessHandleCount.Alert" Target="Microsoft.Windows.Server.10.0.ProcessMonitoring.ProcessSeed" Enabled="false" Remotable="true" Priority="Normal" DiscardLevel="100" ConfirmDelivery="false">
<Category>Custom</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.10.0.Process.HandleCountAlerting.DataSource" RunAs="Microsoft.Windows.Server.10.0.RunAs.CollectionRules">
<MonitoringConfiguration>$Target/Property[Type="WindowsServer!Microsoft.Windows.Server.ProcessSeed"]/ThresholdsByProcess$</MonitoringConfiguration>
<IntervalSeconds>120</IntervalSeconds>
<SampleCount>6</SampleCount>
<HandleCountIncreaseThreshold>20</HandleCountIncreaseThreshold>
<LogLevel>4</LogLevel>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="Microsoft.Windows.Server.10.0.GenerateAlertWriteAction">
<AlertMessageId>$MPElement[Name="Microsoft.Windows.Server.10.0.ProcessHandleCount.Alert.AlertMessage"]$</AlertMessageId>
<Threshold>$Data/HandleCountIncreaseThreshold$</Threshold>
<Metric>DoesHandleCountIncreaseTooFast</Metric>
</WriteAction>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.10.0.CloseAlertWriteAction" Target="SCDW!Microsoft.SystemCenter.DataWarehouseConnectorServer">
<TimeoutSeconds>300</TimeoutSeconds>
<RuleId>$MPElement[Name="Microsoft.Windows.Server.10.0.ProcessHandleCount.Alert"]$</RuleId>
<Metric>DoesHandleCountIncreaseTooFast</Metric>
</WriteAction>
</WriteActions>
</Rule>