이 규칙은 응용 프로그램당 영향 받은 총 고유 시스템 수에 따라 모니터 상태를 성공으로 설정할 수 있도록 합니다.
이 규칙은 응용 프로그램당 총 컴퓨터 수에 따라 모니터 상태를 성공으로 설정하는 데 내부적으로 사용됩니다. 이 규칙은 모니터링에 부정적인 영향을 가져오므로 재정의하면 안 됩니다.
이러한 종류의 규칙에 해당되지 않는 섹션입니다.
이러한 종류의 규칙에 대한 사용자 작업은 없습니다.
Target | Microsoft.SystemCenter.CM.AEM.CrashListener |
Category | PerformanceCollection |
Enabled | False |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
Scheduler | DataSource | System.Scheduler | Default |
SuccessStateSetter | WriteAction | Microsoft.SystemCenter.CM.AEM.Internal.TargetSetSuccessStateAction | Default |
<Rule ID="Microsoft.SystemCenter.CM.AEM.Internal.AppMachineCountMonitorSuccessStateSetter" 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="SuccessStateSetter" TypeID="Microsoft.SystemCenter.CM.AEM.Internal.TargetSetSuccessStateAction">
<Query>DECLARE @TableName NVARCHAR(1000), @TableName2 NVARCHAR(1000), @Query NVARCHAR(1000);SELECT @TableName = ManagedTypeTableName FROM ManagedType WHERE TypeName = 'Microsoft.SystemCenter.CM.AEM.Application';SELECT @TableName2 = ManagedTypeTableName FROM ManagedType WHERE TypeName = 'Microsoft.SystemCenter.CM.AEM.MonitorOverride';SET @Query = N'select count(*), AR.SourceEntityId, IsNull(MO.UniqueComputerThresholdValue, 50) from AemRelationship AR join [' + @TableName + '] A on AR.SourceEntityId = A.BaseManagedEntityId left join [' + @TableName2 + '] MO on AR.SourceEntityId = MO.ManagedEntityId where AR.RelationshipTypeId = 1 and AR.EntityTypeId = 0 group by AR.SourceEntityId, MO.UniqueComputerThresholdValue';EXEC sp_executesql @Query</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>