VS(s) down-f5-all

VS(s) down-f5-all
0

VS(s) down-f5-all

Vendor: f5

OS: all

Description:
indeni will alert one or more virtual systems in a device is down.

Remediation Steps:
Review the cause for the virtual systems being down.

How does this work?
This script uses the F5 iControl REST API to retrieve the current status of vCMP guests.

Why is this important?
Keeping track of vCMP guest states will enable alerting for when a VM has failed.

Without Indeni how would you find this?
This metric is available by logging into the device with SSH, entering TMSH and executing “show vcmp guest”.

f5-rest-mgmt-tm-vcmp-guest-stats

name: f5-rest-mgmt-tm-vcmp-guest-stats
description: Extract status of deployed vCMP guests
type: monitoring
monitoring_interval: 10 minutes
requires:
    vendor: f5
    product: load-balancer
    rest-api: 'true'
    vsx: 'true'
comments:
    vs-state:
        why: |
            Keeping track of vCMP guest states will enable alerting for when a VM has failed.
        how: |
            This script uses the F5 iControl REST API to retrieve the current status of vCMP guests.
        without-indeni: |
            This metric is available by logging into the device with SSH, entering TMSH and executing "show vcmp guest".
        can-with-snmp: false
        can-with-syslog: false
    uptime-milliseconds:
        why: |
            Keeping track of vCMP guest uptimes can help trigger alerts if they are suddenly restarted due to a system failure.
        how: |
            This script uses the F5 iControl REST API to retrieve the current uptime of vCMP guests.
        without-indeni: |
            This metric is available by logging into the device with SSH, entering TMSH and executing "show vcmp guest".
        can-with-snmp: false
        can-with-syslog: false
steps:
-   run:
        type: HTTP
        command: /mgmt/tm/sys/clock
    parse:
        type: JSON
        file: rest-mgmt-tm-vcmp-guest-stats.parser.1.json.yaml
-   run:
        type: HTTP
        command: /mgmt/tm/vcmp/guest/stats
    parse:
        type: JSON
        file: rest-mgmt-tm-vcmp-guest-stats.parser.2.json.yaml

vs_down

// 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.RuleContext
import com.indeni.server.rules.library.templates.StateDownTemplateRule
import com.indeni.server.rules.RemediationStepCondition

/**
  *
  */
case class vs_down() extends StateDownTemplateRule(
  ruleName = "vs_down",
  ruleFriendlyName = "Devices with VS's: VS(s) down",
  ruleDescription = "indeni will alert one or more virtual systems in a device is down.",
  metricName = "vs-state",
  applicableMetricTag = "name",
  alertItemsHeader = "VS's Affected",
  alertDescription = "One or more virtual systems in this device are down.",
  baseRemediationText = "Review the cause for the virtual systems being down.")(
  RemediationStepCondition.VENDOR_F5 -> "For F5 vCMP's, review https://support.f5.com/csp/article/K15930"
)