Pool member / server response time high-f5-all

Pool member / server response time high-f5-all
0

Pool member / server response time high-f5-all

Vendor: f5

OS: all

Description:
indeni will alert if the ping from the load balancer to specific servers is too high.

Remediation Steps:
Review any networking or communication issues which may cause this.

How does this work?
This alert logs into the F5 through SSH and extract all node IPs and gathers statistics by pinging each node.

Why is this important?
Nodes having slow response times may be indicative of an application health issue. It is important to measure the response time of each node against a calculated average to note if it’s too high.

Without Indeni how would you find this?
Log into the device through SSH. Enter TMSH and issue the command “cd /;list ltm node recursive”. Ping each node and note as to whether the response time is above expected threshold.

f5-tmsh-list-ltm-node-recursive-ping-statistics

name: f5-tmsh-list-ltm-node-recursive-ping-statistics
description: Measure response time of nodes
type: monitoring
monitoring_interval: 1 minute
requires:
    vendor: f5
    product: load-balancer
    linux-based: 'true'
    shell: bash
comments:
    lb-server-ping-response:
        why: |
            Nodes having slow response times may be indicative of an application health issue. It is important to measure the response time of each node against a calculated average to note if it's too high.
        how: |
            This alert logs into the F5 through SSH and extract all node IPs and gathers statistics by pinging each node.
        without-indeni: |
            Log into the device through SSH. Enter TMSH and issue the command "cd /;list ltm node recursive". Ping each node and note as to whether the response time is above expected threshold.
        can-with-snmp: false
        can-with-syslog: false
steps:
-   run:
        type: SSH
        file: tmsh-list-ltm-node-recursive-ping-statistics.remote.1.bash
    parse:
        type: AWK
        file: tmsh-list-ltm-node-recursive-ping-statistics.parser.1.awk

lb_server_ping_slow

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

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

import com.indeni.server.rules.RuleContext
import com.indeni.server.rules.library.templates.NearingCapacityWithItemsTemplateRule
import com.indeni.server.rules.RemediationStepCondition

/**
  *
  */
case class lb_server_ping_slow() extends NearingCapacityWithItemsTemplateRule(
  ruleName = "lb_server_ping_slow",
  ruleFriendlyName = "Load Balancers: Pool member / server response time high",
  ruleDescription = "indeni will alert if the ping from the load balancer to specific servers is too high.",
  usageMetricName = "lb-server-ping-response",
  threshold = 20.0,
  applicableMetricTag = "name",
  alertItemsHeader = "Slow Servers/Pool Members",
  alertDescription = "Some pool members' or servers' response time is too high.",
  alertItemDescriptionFormat = "The response time for this pool member or server is %.0f ms",
  baseRemediationText = "Review any networking or communication issues which may cause this.")(
  RemediationStepCondition.VENDOR_F5 -> "Try running the following command on the device under bash:\ntmsh -q -c 'cd /;list ltm node recursive' | awk '/^ltm node/{print \"Node: \" $3} /address/{ system(\"ping -c1 \" $2)};'"
)