Virtual server offline-f5-all

Virtual server offline-f5-all
0

Virtual server offline-f5-all

Vendor: f5

OS: all

Description:
Indeni will alert if a virtual server is in offline state and it has not been disabled.

Remediation Steps:
To restore functionality an admin must investigate the associated pool statuses to determine the reason.\n

How does this work?
This alert uses the iControl REST interface to extract the state of the virtual servers.

Why is this important?
A offline virtual server wont forward any traffic. This will alert if the state is offline and the virtual server has not been disabled

Without Indeni how would you find this?
Login to the device’s web interface and click on “Local Traffic” and then “Virtual servers”. For each of the Virtual Servers, verify the status

f5-rest-mgmt-tm-ltm-virtual-state

name: f5-rest-mgmt-tm-ltm-virtual-state
description: Determine the state of the virtual server state.
type: monitoring
monitoring_interval: 60 minute
requires:
    vendor: f5
    product: load-balancer
    rest-api: 'true'
    shell: bash
comments:
    lb-virtual-server-availability:
        why: |
            A offline virtual server wont forward any traffic. This will alert if the state is offline and the virtual server has not been disabled
        how: |
            This alert uses the iControl REST interface to extract the state of the virtual servers.
        without-indeni: |
            Login to the device's web interface and click on "Local Traffic" and then "Virtual servers". For each of the Virtual Servers, verify the status
        can-with-snmp: true
        can-with-syslog: false
steps:
-   run:
        type: HTTP
        command: /mgmt/tm/ltm/virtual/stats?$select=tmName,status.availabilityState,status.enabledState,status.statusReason
    parse:
        type: JSON
        file: rest-mgmt-tm-ltm-virtual-state.parser.1.json.yaml

CrossVendorVirtualServerAvailabilityRule

// Deprecation warning : Scala template-based rules are deprecated. Please use YAML format rules instead.

package com.indeni.server.rules.library.templatebased.crossvendor

import com.indeni.server.rules.library.templates.StateDownTemplateRule
import com.indeni.server.rules.RemediationStepCondition

case class CrossVendorVirtualServerAvailabilityRule() extends StateDownTemplateRule(
  ruleName = "CrossVendorVirtualServerAvailabilityRule",
  ruleFriendlyName = "All Devices: Virtual server offline",
  ruleDescription = "Indeni will alert if a virtual server is in offline state and it has not been disabled.",
  metricName = "lb-virtual-server-availability",
  applicableMetricTag = "name",
  alertItemsHeader = "Virtual servers has been detected as down",
  alertDescription = "A virtual server marked as not available means that the services behind it is unavailable for clients.",
  baseRemediationText = "To restore functionality an admin must investigate the associated pool statuses to determine the reason.\n")(
  RemediationStepCondition.VENDOR_F5 -> """1. Log in to the devices web interface
                                              |2. Click on "Local Traffic" and then "Virtual Servers"
                                              |3. For each of the Virtual Servers, verify the pool status""".stripMargin
)