Monitors Pool Availability State via SNMP and Powershell
Monitors F5 Pool Availability State, Uses a Powershell Script and SNMP to collect all Pool Availability States for a SyncFailoverGroup, Supports Cookdown!
Healthy : Pool is Available (State 1)
Warning : Unknown or Temporarily unavailable (State 2 or 4)
Critical : Error, Unavailable or Unlicenced (State 0, 3 or 5)
SNMP OIDs Used;
.1.3.6.1.4.1.3375.2.2.5.5.2.1.1 - bigipTrafficMgmt.bigipLocalTM.ltmPools.ltmPoolStatus.ltmPoolStatusTable.ltmPoolStatusEntry.ltmPoolStatusName
.1.3.6.1.4.1.3375.2.2.5.5.2.1.2 - bigipTrafficMgmt.bigipLocalTM.ltmPools.ltmPoolStatus.ltmPoolStatusTable.ltmPoolStatusEntry.ltmPoolStatusAvailState
Target | AP.F5.LTM.Pool | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | AvailabilityHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | AP.F5.LTM.Monitor.PoolAvailabilityState.Powershell | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<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>