Audiocodes Trap Dependent on Another Trap Monitor Type

Audiocodes.GW.Management.Pack.Trap.Dependent.On.Another.Trap.MonitorType (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityInternal
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DSTrap DataSource Audiocodes.GW.Management.Pack.Trap.Depending.DataSource Default
CriticalMapper ConditionDetection System.ExpressionFilter Default
HealthyMapper ConditionDetection System.ExpressionFilter Default

Source Code:

<UnitMonitorType ID="Audiocodes.GW.Management.Pack.Trap.Dependent.On.Another.Trap.MonitorType" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="MonitorStateHealthy" NoDetection="false"/>
<MonitorTypeState ID="MonitorStateCritical" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element minOccurs="1" name="IP" type="xsd:string"/>
<xsd:element minOccurs="1" name="CommunityString" type="xsd:string"/>
<xsd:element minOccurs="1" name="OIDProp" type="xsd:string"/>
<xsd:element minOccurs="1" name="DependingOnOID" type="xsd:string"/>
</Configuration>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DSTrap" TypeID="Audiocodes.GW.Management.Pack.Trap.Depending.DataSource">
<IP>$Config/IP$</IP>
<CommunityString>$Config/CommunityString$</CommunityString>
<OIDProp>$Config/OIDProp$</OIDProp>
<DependingOnOID>$Config/DependingOnOID$</DependingOnOID>
</DataSource>
<ConditionDetection ID="HealthyMapper" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/Property</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Yes</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="CriticalMapper" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/Property</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">No</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="MonitorStateHealthy">
<Node ID="HealthyMapper">
<Node ID="DSTrap"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="MonitorStateCritical">
<Node ID="CriticalMapper">
<Node ID="DSTrap"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>