Aracı Tarafından Başlatılan Bakım Modu Kuralı

Microsoft.SystemCenter.Agent.MaintenanceMode (Rule)

Bu kural, aracı tarafından başlatılan Bakım Modu İsteği'ni algılamak için kullanılır. Bu kural “Aracı Tarafından Başlatılan Bakım Modu Olay İşleme Kuralı”'na bağımlıdır. Aracı tarafından başlatılan Bakım Modu özelliği bu kuralların etkinleştirilmesini gerektirir.

Element properties:

TargetMicrosoft.SystemCenter.Agent
CategoryEventCollection
EnabledTrue
Event_ID19999
Event SourceOperationsManager
Alert GenerateFalse
RemotableFalse
Event LogSystem

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
CollectToDB WriteAction Microsoft.SystemCenter.CollectEvent Default
CollectToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishEventData Default

Source Code:

<Rule ID="Microsoft.SystemCenter.Agent.MaintenanceMode" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.Agent" ConfirmDelivery="false" Remotable="false" 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>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">19999</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">OperationsManager</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="CollectToDB" TypeID="SCLibrary!Microsoft.SystemCenter.CollectEvent"/>
<WriteAction ID="CollectToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishEventData"/>
</WriteActions>
</Rule>