客户端监视应用程序 - 受影响的唯一机器计数监视器错误状态设置程序规则

Microsoft.SystemCenter.CM.AEM.Internal.AppMachineCountMonitorErrorStateSetter (Rule)

此规则使得能够根据每应用程序的受影响唯一机器总数将监视器状态设置为错误

Knowledge Base article:

摘要

此规则在内部使用,根据每应用程序的机器总数将监视器状态设置为错误。此规则不应被替代,因为会对监视产生负面影响。

原因

本节不适用于此类型规则。

解决方法

此类型规则无需任何用户操作。

Element properties:

TargetMicrosoft.SystemCenter.CM.AEM.CrashListener
CategoryPerformanceCollection
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.Scheduler Default
ErrorStateSetter WriteAction Microsoft.SystemCenter.CM.AEM.Internal.TargetSetErrorStateAction Default

Source Code:

<Rule ID="Microsoft.SystemCenter.CM.AEM.Internal.AppMachineCountMonitorErrorStateSetter" Target="AEMLib!Microsoft.SystemCenter.CM.AEM.CrashListener" Enabled="false" ConfirmDelivery="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="Scheduler" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Minutes">15</Interval>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="ErrorStateSetter" TypeID="Microsoft.SystemCenter.CM.AEM.Internal.TargetSetErrorStateAction">
<Query>select count(*), AR.SourceEntityId, IsNull(MO.UniqueComputerThresholdValue, 50) from AemRelationship AR join MT_Application A on AR.SourceEntityId = A.BaseManagedEntityId left join MT_MonitorOverride MO on AR.SourceEntityId = MO.ManagedEntityId where AR.RelationshipTypeId = 1 and AR.EntityTypeId = 0 group by AR.SourceEntityId, MO.UniqueComputerThresholdValue</Query>
<MonitorId>$MPElement[Name="AEMViewsInternal!Microsoft.SystemCenter.CM.AEM.Views.Internal.ComputersAffectedAppThreshold"]$</MonitorId>
<ManagedEntityId>Columns/Column[2]</ManagedEntityId>
<Value>Columns/Column[1]</Value>
<Threshold>Columns/Column[3]</Threshold>
</WriteAction>
</WriteActions>
</Rule>