Monitors Node Enabled State via SNMP and Powershell
Monitors F5 Node Enabled State, Uses a Powershell Script and SNMP to collect all Node Enabled States for a SyncFailoverGroup, Supports Cookdown!
NodeEnabled : Node is Enabled (State 1)
NodeDisabled : Node is NOT Enabled (State 0, 2 or 3)
SNMP OIDs Used;
.1.3.6.1.4.1.3375.2.2.4.3.2.1.7 - bigipTrafficMgmt.bigipLocalTM.ltmNodes.ltmNodeAddrStatus.ltmNodeAddrStatusTable.ltmNodeAddrStatusEntry.ltmNodeAddrStatusName
.1.3.6.1.4.1.3375.2.2.4.3.2.1.4 - bigipTrafficMgmt.bigipLocalTM.ltmNodes.ltmNodeAddrStatus.ltmNodeAddrStatusTable.ltmNodeAddrStatusEntry.ltmNodeAddrStatusEnabledState
Target | AP.F5.LTM.Node | ||
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.NodeEnabledState.Powershell | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="AP.F5.LTM.Monitor.Node.EnabledState" Accessibility="Public" Enabled="true" Target="AP.F5.LTM.Node" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="AP.F5.LTM.Monitor.NodeEnabledState.Powershell" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="AP.F5.LTM.Monitor.Node.EnabledState.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="AP.F5.LTM.Node"]/Name$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Property[Type="AP.F5.LTM.SyncFailoverGroup"]/Name$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='EnabledState']$</AlertParameter3>
<AlertParameter4>$Data/Context/Property[@Name='DetailedReason']$</AlertParameter4>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="NodeEnabled" MonitorTypeStateID="NodeEnabled" HealthState="Success"/>
<OperationalState ID="NodeDisabled" MonitorTypeStateID="NodeDisabled" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>600</IntervalSeconds>
<SyncTime>00:04</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>
<NodeName>$Target/Property[Type="AP.F5.LTM.Node"]/FullName$</NodeName>
</Configuration>
</UnitMonitor>