Lenovo Flex System Chassis SNMPTrap 2StateMonitorTypeForManagementModuleInsertOrRemove
IBM.FlexSystem.SNMPTrap.2StateMonitorTypeForManagementModuleInsertOrRemove (UnitMonitorType)
Element properties:
Member Modules:
Source Code:
<UnitMonitorType ID="IBM.FlexSystem.SNMPTrap.2StateMonitorTypeForManagementModuleInsertOrRemove" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="SuccessEventRaised" NoDetection="false"/>
<MonitorTypeState ID="FailedEventRaised" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SuccessEventIds" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="FailedEventIds" type="xsd:string"/>
</Configuration>
<MonitorImplementation>
<MemberModules>
<DataSource ID="SdkDS" TypeID="SNMP!System.SnmpTrapProvider">
<IP>$Target/Host/Property[Type="NetLib!Microsoft.SystemCenter.NetworkDevice"]/IPAddress$</IP>
<CommunityString>$Target/Host/Property[Type="NetLib!Microsoft.SystemCenter.NetworkDevice"]/CommunityString$</CommunityString>
<AllTraps>true</AllTraps>
<OIDProps/>
</DataSource>
<ConditionDetection ID="SuccessFilterCondition" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">ErrorCode</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/SnmpVarBinds/SnmpVarBind[OID='1.3.6.1.4.1.2.6.158.3.1.1.14'][1]/Value</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="IBM.FlexSystem.ManagementModule"]/EventInsert$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/SnmpVarBinds/SnmpVarBind[OID='1.3.6.1.4.1.2.6.158.3.1.1.14'][1]/Value</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>$Config/SuccessEventIds$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FailedFilterCondition" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">ErrorCode</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/SnmpVarBinds/SnmpVarBind[OID='1.3.6.1.4.1.2.6.158.3.1.1.14'][1]/Value</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="IBM.FlexSystem.ManagementModule"]/EventRemove$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/SnmpVarBinds/SnmpVarBind[OID='1.3.6.1.4.1.2.6.158.3.1.1.14'][1]/Value</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>$Config/FailedEventIds$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="SuccessEventRaised">
<Node ID="SuccessFilterCondition">
<Node ID="SdkDS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="FailedEventRaised">
<Node ID="FailedFilterCondition">
<Node ID="SdkDS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>