Alert monitor for events generated by winevent

IBM.SystemX.BaseSystem.Event (UnitMonitor)


Alert monitor for events generated by winevent

Element properties:

TargetIBM.SystemX.BaseSystem
Parent MonitorSystem.Health.ConfigurationState
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeIBM.MonitorType.WinEventManualReset3State
RemotableTrue
AccessibilityPublic
Alert Message
This is a test event generated by winevent

{0} -- EventClass = {1}
RunAsDefault

Source Code:

<UnitMonitor ID="IBM.SystemX.BaseSystem.Event" Accessibility="Public" Enabled="true" Target="IBM.SystemX.BaseSystem" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Common!IBM.MonitorType.WinEventManualReset3State" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="IBM.SystemX.BaseSystem.Event.AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name="Description"]$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name="__CLASS"]$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Critical" MonitorTypeStateID="ErrorEventRaised" HealthState="Error"/>
<OperationalState ID="Warning" MonitorTypeStateID="WarningEventRaised" HealthState="Warning"/>
<OperationalState ID="Success" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<NameSpace>root\ibmsd</NameSpace>
<Query>SELECT __Class, AlertingManagedElement, Description, EventID, PerceivedSeverity FROM CIM_AlertIndication</Query>
<CIMAlertFilterExpression>
<RegExExpression>
<ValueExpression>
<XPathQuery>Property[@Name="EventID"]</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>"IBMPSG_WinEvent"</Pattern>
</RegExExpression>
</CIMAlertFilterExpression>
<PollInterval>10</PollInterval>
<WinEventFiltering>$Target/Host/Property[Type="IBM.SystemX.Platform"]/ibmInternalWinEventFiltering$</WinEventFiltering>
</Configuration>
</UnitMonitor>