This module reacts on configuration update event and produces event that starts all applications discovery.
This module reacts on configuration update event and produces event that starts all applications discovery.
Target | Microsoft.Windows.Computer |
Category | Custom |
Enabled | True |
Event_ID | 1201 |
Event Source | HealthService |
Alert Generate | False |
Remotable | False |
Event Log | Operations Manager |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
OverrideMPReceived | DataSource | Microsoft.Windows.EventProvider | Default |
GenerateUpdateEvent | WriteAction | AVIcode.DotNet.SystemCenter.GenerateEventWithDelay | Default |
<Rule ID="AVIcode.DotNet.SystemCenter.InitActionByConfigUpdate.ForApplicationDiscovery" Enabled="true" Target="Windows!Microsoft.Windows.Computer" ConfirmDelivery="true" Remotable="false" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="OverrideMPReceived" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>.</ComputerName>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1201</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">HealthService</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateUpdateEvent" TypeID="AVIcode.DotNet.SystemCenter.GenerateEventWithDelay">
<TimeoutSeconds>600</TimeoutSeconds>
<EventId>19982</EventId>
<EventMessage>Management pack was updated. Discovery will be refreshed.</EventMessage>
<EventDelay>300000</EventDelay>
</WriteAction>
</WriteActions>
</Rule>