收集物件狀態

Microsoft.SystemCenter.CollectPublishedEntityState (Rule)

此系統規則會收集所有物件的狀態變更事件。

Knowledge Base article:

摘要

此規則為內部使用,用以收集整個管理群組之所有物件的所有狀態變更事件。不應覆寫此規則,否則會對監視有負面影響。

原因

本部分不適用此規則類型。

解決方式

此規則類型不需要任何使用者動作。

Element properties:

TargetMicrosoft.SystemCenter.HealthService
CategorySystem
EnabledTrue
Alert GenerateFalse
RemotableTrue
Commentthis rule collects all monitor states from an agent

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SystemCenter.PublishedEntityHealthStateChangeProvider Default
PostFilter ConditionDetection Microsoft.SystemCenter.DistributedAcknowledgement.PostFilter Default
WA WriteAction Microsoft.SystemCenter.EntityHealthStateChangeWriter Default

Source Code:

<Rule ID="Microsoft.SystemCenter.CollectPublishedEntityState" Comment="this rule collects all monitor states from an agent" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="40">
<Category>System</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SystemCenter.PublishedEntityHealthStateChangeProvider"/>
</DataSources>
<ConditionDetection ID="PostFilter" TypeID="Microsoft.SystemCenter.DistributedAcknowledgement.PostFilter">
<ManagementGroupId>$Target/ManagementGroup/Id$</ManagementGroupId>
<ChannelId>4506DE47-806E-447f-90BB-20FAEBB7E87E</ChannelId>
<ItemId>ManagedEntityId=$Data/ManagedEntity$ MonitorId=$Data/Changes/Change/MonitorId$</ItemId>
<ItemValid>$Data/@InstanceExists$</ItemValid>
<Cookie>$Data/Changes/Change/EventOriginId$</Cookie>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="SCLibrary!Microsoft.SystemCenter.EntityHealthStateChangeWriter" Target="SCLibrary!Microsoft.SystemCenter.CollectionManagementServer"/>
</WriteActions>
</Rule>