Pool Availability State

AP.F5.LTM.Monitor.Pool.AvailabilityState (UnitMonitor)

Monitors Pool Availability State via SNMP and Powershell

Knowledge Base article:

Summary

Monitors F5 Pool Availability State, Uses a Powershell Script and SNMP to collect all Pool Availability States for a SyncFailoverGroup, Supports Cookdown!

Thresholds

SNMP Information

SNMP OIDs Used;

Element properties:

TargetAP.F5.LTM.Pool
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeAP.F5.LTM.Monitor.PoolAvailabilityState.Powershell
RemotableTrue
AccessibilityPublic
Alert Message
F5 Pool Availability State Change Alert
Pool : {0}
Sync-Failover Group : {1}

Has changed Availability State to {2} (0=Error, 1=Available, 2=Not Currently Available, 3=Not AVailable, 4=Unknown, 5=Unlicenced)

Given Reason is : {3}
RunAsDefault

Source Code:

<UnitMonitor ID="AP.F5.LTM.Monitor.Pool.AvailabilityState" Accessibility="Public" Enabled="true" Target="AP.F5.LTM.Pool" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="AP.F5.LTM.Monitor.PoolAvailabilityState.Powershell" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="AP.F5.LTM.Monitor.Pool.AvailabilityState.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="AP.F5.LTM.Pool"]/Name$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Property[Type="AP.F5.LTM.SyncFailoverGroup"]/Name$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='AvailabilityState']$</AlertParameter3>
<AlertParameter4>$Data/Context/Property[@Name='DetailedReason']$</AlertParameter4>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="PoolOkay" MonitorTypeStateID="PoolOkay" HealthState="Success"/>
<OperationalState ID="PoolWarning" MonitorTypeStateID="PoolWarning" HealthState="Warning"/>
<OperationalState ID="PoolCritical" MonitorTypeStateID="PoolCritical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>600</IntervalSeconds>
<SyncTime>00:02</SyncTime>
<Debug>false</Debug>
<DeviceAddresses>$Target/Host/Host/Property[Type="AP.F5.LTM.SyncFailoverGroup"]/Addresses$</DeviceAddresses>
<DevicePorts>$Target/Host/Host/Property[Type="AP.F5.LTM.SyncFailoverGroup"]/Ports$</DevicePorts>
<DeviceCommunities>$Target/Host/Host/Property[Type="AP.F5.LTM.SyncFailoverGroup"]/Communities$</DeviceCommunities>
<PoolName>$Target/Property[Type="AP.F5.LTM.Pool"]/FullName$</PoolName>
</Configuration>
</UnitMonitor>