SCUtils.APC.UPS.Monitor.Type.GreaterThanThresholdProbe (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
SnmpProbe DataSource SCUtils.APC.UPS.BasicSnmpProbe.DSMT Default
CDStatusNorOK ConditionDetection System.ExpressionFilter Default
CDStatusOK ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelector
IntervalSecondsint$Config/IntervalSeconds$
Thresholddouble$Config/Threshold$

Source Code:

<UnitMonitorType ID="SCUtils.APC.UPS.Monitor.Type.GreaterThanThresholdProbe" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="StatusOK" NoDetection="false"/>
<MonitorTypeState ID="StatusNotOK" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IPAddress" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="CommunityString" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="SnmpVersion" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="OID" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Threshold" type="xsd:double"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="Threshold" Selector="$Config/Threshold$" ParameterType="double"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="SnmpProbe" TypeID="SCUtils.APC.UPS.BasicSnmpProbe.DSMT">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<IPAddress>$Config/IPAddress$</IPAddress>
<CommunityString>$Config/CommunityString$</CommunityString>
<SnmpVersion>$Config/SnmpVersion$</SnmpVersion>
<SnmpVarBinds>
<SnmpVarBind>
<OID>$Config/OID$</OID>
<Syntax>0</Syntax>
<Value VariantType="8"/>
</SnmpVarBind>
</SnmpVarBinds>
<PreProbeFilterExpression>
<RegExExpression>
<ValueExpression>
<Value>$Config/OID$</Value>
</ValueExpression>
<Operator>DoesNotMatchRegularExpression</Operator>
<Pattern>(.+)\.$</Pattern>
</RegExExpression>
</PreProbeFilterExpression>
</DataSource>
<ConditionDetection ID="CDStatusOK" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/SnmpVarBinds/SnmpVarBind[1]/Value</XPathQuery>
</ValueExpression>
<Operator>LessEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/Threshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="CDStatusNorOK" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/SnmpVarBinds/SnmpVarBind[1]/Value</XPathQuery>
</ValueExpression>
<Operator>Greater</Operator>
<ValueExpression>
<Value Type="Double">$Config/Threshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="StatusOK">
<Node ID="CDStatusOK">
<Node ID="SnmpProbe"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="StatusNotOK">
<Node ID="CDStatusNorOK">
<Node ID="SnmpProbe"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>