Node EnabledState Monitor Data Source
AP.F5.LTM.Monitor.NodeEnabledState.Powershell (UnitMonitorType)
Gets Node EnabledState via Powershell/SNMP (Cookdown compliant)
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<UnitMonitorType ID="AP.F5.LTM.Monitor.NodeEnabledState.Powershell" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="NodeEnabled" NoDetection="false"/>
<MonitorTypeState ID="NodeDisabled" 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="SyncTime" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Debug" type="xsd:boolean"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="DeviceAddresses" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="DevicePorts" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="DeviceCommunities" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="NodeName" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="SyncTime" Selector="$Config/SyncTime$" ParameterType="string"/>
<OverrideableParameter ID="Debug" Selector="$Config/Debug$" ParameterType="bool"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="AP.F5.LTM.DataSource.NodeEnabledState.Filtered">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<SyncTime>$Config/SyncTime$</SyncTime>
<Debug>$Config/Debug$</Debug>
<DeviceAddresses>$Config/DeviceAddresses$</DeviceAddresses>
<DevicePorts>$Config/DevicePorts$</DevicePorts>
<DeviceCommunities>$Config/DeviceCommunities$</DeviceCommunities>
<NodeName>$Config/NodeName$</NodeName>
</DataSource>
<ProbeAction ID="Probe" TypeID="AP.F5.LTM.Probe.NodeEnabledState.Powershell">
<Debug>$Config/Debug$</Debug>
<DeviceAddresses>$Config/DeviceAddresses$</DeviceAddresses>
<DevicePorts>$Config/DeviceAddresses$</DevicePorts>
<DeviceCommunities>$Config/DeviceAddresses$</DeviceCommunities>
</ProbeAction>
<ConditionDetection ID="NodeEnabledFilter" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='EnabledState']</XPathQuery>
</ValueExpression>
<Operator>LessEqual</Operator>
<ValueExpression>
<Value Type="Integer">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="NodeDisabledFilter" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='EnabledState']</XPathQuery>
</ValueExpression>
<Operator>Greater</Operator>
<ValueExpression>
<Value Type="Integer">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="NodeEnabled">
<Node ID="NodeEnabledFilter">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="NodeDisabled">
<Node ID="NodeDisabledFilter">
<Node ID="DS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>