Collects Error and Warning events from NPMD Agent

Microsoft.IntelligencePacks.NetworkMonitoring.CollectNPMDErrorsAndWarnings (Rule)

Element properties:

TargetMicrosoft.Windows.Computer
CategoryCustom
EnabledFalse
Event SourceNPMD Agent
Alert GenerateFalse
RemotableFalse
Event LogOperations Manager

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
CD ConditionDetection Microsoft.EnterpriseManagement.Advisor.DiagnosticsMapper Default
WA WriteAction Microsoft.SystemCenter.DiagnosticsInformationDataWriteAction Default

Source Code:

<Rule ID="Microsoft.IntelligencePacks.NetworkMonitoring.CollectNPMDErrorsAndWarnings" Target="Windows!Microsoft.Windows.Computer" Enabled="false" ConfirmDelivery="false" Remotable="false" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">NPMD Agent</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">100</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">101</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="Mon!Microsoft.EnterpriseManagement.Advisor.DiagnosticsMapper">
<PropertyMappings>
<PropertyMapping>
<PropertyName>LoggingComputer</PropertyName>
<XPath>LoggingComputer</XPath>
<HashValue>true</HashValue>
</PropertyMapping>
<PropertyMapping>
<PropertyName>PublisherName</PropertyName>
<XPath>PublisherName</XPath>
<HashValue>false</HashValue>
</PropertyMapping>
<PropertyMapping>
<PropertyName>EventDisplayNumber</PropertyName>
<XPath>EventDisplayNumber</XPath>
<HashValue>false</HashValue>
</PropertyMapping>
<PropertyMapping>
<PropertyName>LogData</PropertyName>
<XPath>Params/Param[1]</XPath>
<HashValue>false</HashValue>
</PropertyMapping>
</PropertyMappings>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="Types!Microsoft.SystemCenter.DiagnosticsInformationDataWriteAction"/>
</WriteActions>
</Rule>