Acer.Server.OOB.PRO12.RecoveryRule

Acer.Server.OOB.PRO12.RecoveryRule (Rule)

Knowledge Base article:

Summary

The rule will execute recovery script when collecting PRO event in the windows event log.

Element properties:

TargetAcer.Server.OOB.PRO12.MonitoredHost
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
HypervHostLogMonitored DataSource Microsoft.Windows.EventCollector System.PrivilegedMonitoringAccount
Recovery WriteAction Acer.Server.OOB.PRO12.Recovery Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectEvent System.PrivilegedMonitoringAccount

Source Code:

<Rule ID="Acer.Server.OOB.PRO12.RecoveryRule" Enabled="true" Target="Acer.Server.OOB.PRO12.MonitoredHost" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="HypervHostLogMonitored" RunAs="System!System.PrivilegedMonitoringAccount" TypeID="Windows!Microsoft.Windows.EventCollector">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<AllowProxying>false</AllowProxying>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">60</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">AcerPRO</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" RunAs="System!System.PrivilegedMonitoringAccount" TypeID="SC!Microsoft.SystemCenter.CollectEvent"/>
<WriteAction ID="Recovery" TypeID="Acer.Server.OOB.PRO12.Recovery" Target="SC!Microsoft.SystemCenter.ManagementServer">
<EventDescription>$Data/EventDescription$</EventDescription>
</WriteAction>
</WriteActions>
</Rule>