Тип монитора состояния администрирования SNMP
System.NetworkManagement.AdminStatusSNMPMonitorType (UnitMonitorType)
Монитор, позволяющий отслеживать объекты состояния администрирования SNMP
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<UnitMonitorType ID="System.NetworkManagement.AdminStatusSNMPMonitorType" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="MTSDeviceSuccess" NoDetection="false"/>
<MonitorTypeState ID="MTSDeviceWarning" NoDetection="false"/>
<MonitorTypeState ID="MTSDeviceError" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element name="HealthStateSuccess" type="xsd:string"/>
<xsd:element name="HealthStateWarning" type="xsd:string"/>
<xsd:element name="HealthStateError" type="xsd:string"/>
<xsd:element name="Interval" type="xsd:integer"/>
<xsd:element name="NoOfRetries" type="xsd:unsignedInt" minOccurs="0" maxOccurs="1"/>
<xsd:element name="NumberOfSamples" type="xsd:unsignedInt" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Timeout" type="xsd:unsignedInt" minOccurs="0" maxOccurs="1"/>
<xsd:element name="AdminStatusOID" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Interval" Selector="$Config/Interval$" ParameterType="int"/>
<OverrideableParameter ID="NoOfRetries" Selector="$Config/NoOfRetries$" ParameterType="int"/>
<OverrideableParameter ID="NumberOfSamples" Selector="$Config/NumberOfSamples$" ParameterType="int"/>
<OverrideableParameter ID="Timeout" Selector="$Config/Timeout$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="ProbeDS" TypeID="System.NetworkManagement.Host.ExtendedSnmpQueryProvider">
<Interval>$Config/Interval$</Interval>
<NoOfRetries>$Config/NoOfRetries$</NoOfRetries>
<Timeout>$Config/Timeout$</Timeout>
<SnmpVarBinds>
<SnmpVarBind>
<OID>$Config/AdminStatusOID$</OID>
<Syntax>0</Syntax>
<Value VariantType="8"/>
</SnmpVarBind>
</SnmpVarBinds>
</DataSource>
<ConditionDetection ID="OperationStatusSuccess" TypeID="System.NetworkManagement.ExpressionFilter">
<Expression>
<Or>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/HealthStateSuccess$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">-1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID="$Config/AdminStatusOID$"]/Value</XPathQuery>
</ValueExpression>
<Operator>DoesNotMatchRegularExpression</Operator>
<Pattern>$Config/HealthStateWarning$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID="$Config/AdminStatusOID$"]/Value</XPathQuery>
</ValueExpression>
<Operator>DoesNotMatchRegularExpression</Operator>
<Pattern>$Config/HealthStateError$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID="$Config/AdminStatusOID$"]/Value</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>$Config/HealthStateSuccess$</Pattern>
</RegExExpression>
</Expression>
</Or>
</Expression>
<SuppressionSettings>
<MatchCount>$Config/NumberOfSamples$</MatchCount>
<SampleCount>$Config/NumberOfSamples$</SampleCount>
</SuppressionSettings>
</ConditionDetection>
<ConditionDetection ID="OperationStatusWarning" TypeID="System.NetworkManagement.ExpressionFilter">
<Expression>
<Or>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/HealthStateWarning$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">-1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID="$Config/AdminStatusOID$"]/Value</XPathQuery>
</ValueExpression>
<Operator>DoesNotMatchRegularExpression</Operator>
<Pattern>$Config/HealthStateSuccess$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID="$Config/AdminStatusOID$"]/Value</XPathQuery>
</ValueExpression>
<Operator>DoesNotMatchRegularExpression</Operator>
<Pattern>$Config/HealthStateError$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID="$Config/AdminStatusOID$"]/Value</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>$Config/HealthStateWarning$</Pattern>
</RegExExpression>
</Expression>
</Or>
</Expression>
<SuppressionSettings>
<MatchCount>$Config/NumberOfSamples$</MatchCount>
<SampleCount>$Config/NumberOfSamples$</SampleCount>
</SuppressionSettings>
</ConditionDetection>
<ConditionDetection ID="OperationStatusError" TypeID="System.NetworkManagement.ExpressionFilter">
<Expression>
<Or>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/HealthStateError$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">-1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID="$Config/AdminStatusOID$"]/Value</XPathQuery>
</ValueExpression>
<Operator>DoesNotMatchRegularExpression</Operator>
<Pattern>$Config/HealthStateSuccess$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID="$Config/AdminStatusOID$"]/Value</XPathQuery>
</ValueExpression>
<Operator>DoesNotMatchRegularExpression</Operator>
<Pattern>$Config/HealthStateWarning$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID="$Config/AdminStatusOID$"]/Value</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>$Config/HealthStateError$</Pattern>
</RegExExpression>
</Expression>
</Or>
</Expression>
<SuppressionSettings>
<MatchCount>$Config/NumberOfSamples$</MatchCount>
<SampleCount>$Config/NumberOfSamples$</SampleCount>
</SuppressionSettings>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="MTSDeviceSuccess">
<Node ID="OperationStatusSuccess">
<Node ID="ProbeDS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="MTSDeviceWarning">
<Node ID="OperationStatusWarning">
<Node ID="ProbeDS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="MTSDeviceError">
<Node ID="OperationStatusError">
<Node ID="ProbeDS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>