Collect Agent Opt In Failures
CollectAgentOptInFailures (Rule)
Element properties:
Member Modules:
Source Code:
<Rule ID="CollectAgentOptInFailures" Enabled="true" Target="Windows!Microsoft.Windows.Server.Computer" Remotable="false">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventCollector">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Operations Manager</LogName>
<AllowProxying>false</AllowProxying>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<!--ErrorAdvisorEnabledByOtherManagementGroup-->
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">54014</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<!--ErrorRegisterAdvisorComponents-->
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">54021</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<!--ErrorAgentUnknown-->
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">54040</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<!--ErrorLegacyAdvisorAgentInstalled-->
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">54015</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<!--ErrorOSVersionNotSupport-->
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">54017</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<!--ErrorDotNet40NotInstalled-->
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">54018</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<!--ErrorDotNet35NotInstalled-->
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">54019</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<!--ErrorHealthServiceTypeNotSupport-->
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">54020</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</DataSource>
</DataSources>
<ConditionDetection ID="Mapper" TypeID="Microsoft.EnterpriseManagement.Advisor.DiagnosticsMapper">
<PropertyMappings>
<PropertyMapping>
<PropertyName>LoggingComputer</PropertyName>
<XPath>LoggingComputer</XPath>
<HashValue>true</HashValue>
</PropertyMapping>
<PropertyMapping>
<PropertyName>EventDisplayNumber</PropertyName>
<XPath>EventDisplayNumber</XPath>
<HashValue>false</HashValue>
</PropertyMapping>
</PropertyMappings>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDiagnostics" TypeID="Types!Microsoft.SystemCenter.DiagnosticsInformationDataWriteAction"/>
</WriteActions>
</Rule>