VirtualServer Availability State

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

Monitors VirtualServer Availability State via SNMP and Powershell

Knowledge Base article:

Summary

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

Thresholds

SNMP Information

SNMP OIDs Used;

Element properties:

TargetAP.F5.LTM.VirtualServer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeAP.F5.LTM.Monitor.VirtualServerAvailabilityState.Powershell
RemotableTrue
AccessibilityPublic
Alert Message
F5 Virtual Server Availability State Change Alert
{0} on {1}, has changed Availabiliy State to {2}, See availability States Below!

Values:
Virtual Server Name : {0},
Sync-Failover Group : {1}
Availability State : {2} (0=Error, 1=Available, 2=Not Currently Available, 3=Not AVailable, 4=Unknown, 5=Unlicenced)
RunAsDefault

Source Code:

<UnitMonitor ID="AP.F5.LTM.Monitor.VirtualServer.AvailabilityState" Accessibility="Public" Enabled="true" Target="AP.F5.LTM.VirtualServer" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="AP.F5.LTM.Monitor.VirtualServerAvailabilityState.Powershell" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="AP.F5.LTM.Monitor.VirtualServer.AvailabilityState.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="AP.F5.LTM.VirtualServer"]/Name$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Property[Type="AP.F5.LTM.SyncFailoverGroup"]/Name$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='AvailabilityState']$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="VirtualServerOkay" MonitorTypeStateID="VirtualServerOkay" HealthState="Success"/>
<OperationalState ID="VirtualServerWarning" MonitorTypeStateID="VirtualServerWarning" HealthState="Warning"/>
<OperationalState ID="VirtualServerCritical" MonitorTypeStateID="VirtualServerCritical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>600</IntervalSeconds>
<SyncTime>00:01</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>
<VirtualServerName>$Target/Property[Type="AP.F5.LTM.VirtualServer"]/FullName$</VirtualServerName>
</Configuration>
</UnitMonitor>