Pool Member Availability State Monitor Data Source

AP.F5.LTM.Monitor.PoolMemberAvailabilityState.Powershell (UnitMonitorType)

Gets Pool Member AvailabilityState via Powershell/SNMP (Cookdown compliant)

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource AP.F5.LTM.DataSource.PoolMemberAvailabilityState.Filtered Default
Probe ProbeAction AP.F5.LTM.Probe.PoolMemberAvailabilityState.Powershell Default
MemberCriticalFilter ConditionDetection System.ExpressionFilter Default
MemberOkayFilter ConditionDetection System.ExpressionFilter Default
MemberWarningFilter ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
IntervalSecondsint$Config/IntervalSeconds$Interval SecondsFrequency in seconds that module is run.
SyncTimestring$Config/SyncTime$Synchronisation TimeOffset that this module is started from.
Debugbool$Config/Debug$DebugDebug Flag, if true then additional info is posted to event log.

Source Code:

<UnitMonitorType ID="AP.F5.LTM.Monitor.PoolMemberAvailabilityState.Powershell" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="PoolMemberOkay" NoDetection="false"/>
<MonitorTypeState ID="PoolMemberWarning" NoDetection="false"/>
<MonitorTypeState ID="PoolMemberCritical" 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="PoolMemberName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="PoolName" 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.PoolMemberAvailabilityState.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>
<PoolMemberName>$Config/PoolMemberName$</PoolMemberName>
<PoolName>$Config/PoolName$</PoolName>
</DataSource>
<ProbeAction ID="Probe" TypeID="AP.F5.LTM.Probe.PoolMemberAvailabilityState.Powershell">
<Debug>$Config/Debug$</Debug>
<DeviceAddresses>$Config/DeviceAddresses$</DeviceAddresses>
<DevicePorts>$Config/DeviceAddresses$</DevicePorts>
<DeviceCommunities>$Config/DeviceAddresses$</DeviceCommunities>
</ProbeAction>
<ConditionDetection ID="MemberOkayFilter" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='AvailabilityState']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<!-- Green - Available in Some Capacity -->
<Value Type="Integer">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="MemberWarningFilter" TypeID="System!System.ExpressionFilter">
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='AvailabilityState']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<!-- Yellow - Not Currently Available -->
<Value Type="Integer">2</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='AvailabilityState']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<!-- Blue - Availability is Unknown -->
<Value Type="Integer">4</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</ConditionDetection>
<ConditionDetection ID="MemberCriticalFilter" TypeID="System!System.ExpressionFilter">
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='AvailabilityState']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<!-- None - Error -->
<Value Type="Integer">0</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='AvailabilityState']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<!-- Red - Not Available -->
<Value Type="Integer">3</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="PoolMemberOkay">
<Node ID="MemberOkayFilter">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="PoolMemberWarning">
<Node ID="MemberWarningFilter">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="PoolMemberCritical">
<Node ID="MemberCriticalFilter">
<Node ID="DS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>