Real servers defined limit approaching-radware-alteon-os

error
alteon-os
radware
Real servers defined limit approaching-radware-alteon-os
0

#1

Real servers defined limit approaching-radware-alteon-os

Vendor: radware

OS: alteon-os

Description:
Alteon devices allow for the configuration of multiple real servers, up to a limit. indeni will alert prior to configuration reaching the limit.

Remediation Steps:
Consider removing certain real servers.

How does this work?
This script runs the “/config/switchCapRealSersCurrEnt” through the Alteon API gateway.

Why is this important?
The alteon can handle a set number of real servers as part of its configuration. This is determined by the CUs allocated to the Alteon, whether predefined by the hardware, or allocation for the VM. Knowing when real server limit is nearing will be crucial for capacity planning.

Without Indeni how would you find this?
An administrator would need to log in to the device and run a CLI command or run the API command “/config/switchCapRealSersCurrEnt”.

api-config-switchCapRealSersCurrEnt

#! META
name: api-config-switchCapRealSersCurrEnt
description: Get the number of real servers defined
type: monitoring
monitoring_interval: 10 minute 
requires:
    os.name: "alteon-os"
    vendor: "radware"
    or:
        -
            vadc: "true"
        -
            standalone: "true"
#! COMMENTS
real-servers-usage:
    why: |
        The alteon can handle a set number of real servers as part of its configuration. This is determined by the CUs allocated to the Alteon, whether predefined by the hardware, or allocation for the VM. Knowing when real server limit is nearing will be crucial for capacity planning.
    how: |
        This script runs the "/config/switchCapRealSersCurrEnt" through the Alteon API gateway.
    without-indeni: |
        An administrator would need to log in to the device and run a CLI command or run the API command "/config/switchCapRealSersCurrEnt".
    can-with-snmp: true
    can-with-syslog: false
    vendor-provided-management: |
        Can be done through Management GUI (Vision or Alteon VX).

#! REMOTE::HTTP
url: /config/switchCapRealSersCurrEnt
protocol: HTTPS

#! PARSER::JSON
_metrics:
    -
        _tags:
            "im.name":
                _constant: "real-servers-usage"
            "live-config":
                _constant: "true"
            "display-name":
                _constant: "Real Servers - Configured"
            "im.dstype.displayType":
                _constant: "number"
        _temp:
            realServerUsage:
                _value: "switchCapRealSersCurrEnt"
        _transform:
            _value.double: |
                {
                    #1(1)
                    split(temp("realServerUsage"), currentArr, "(")
                    print currentArr[1]
                }

radware-api-config-switchCapRealSersMaxEnt

#! META
name: radware-api-config-switchCapRealSersMaxEnt
description: get the maximum number of real servers supported
type: monitoring
monitoring_interval: 59 minute 
requires:
    os.name: "alteon-os"
    vendor: "radware"
    or:
        -
            vadc: "true"
        -
            standalone: "true"

#! COMMENTS
real-servers-limit:
    why: |
        The alteon can handle a set number of real servers as part of its configuration. This is determined by the CUs allocated to the Alteon, whether predefined by the hardware, or allocation for the VM. Knowing when real server limit is nearing will be crucial for capacity planning
    how: |
        This script runs the "/config/switchCapRealSersCurrEnt" through the Alteon API gateway.
    without-indeni: |
        An administrator would need to log in to the device and run a CLI command or run the API command "/config/switchCapRealSersCurrEnt".
    can-with-snmp: true
    can-with-syslog: false
    vendor-provided-management: |
        Can be done through Management GUI (Vision or Alteon VX).

#! REMOTE::HTTP
url: /config/switchCapRealSersMaxEnt
protocol: HTTPS

#! PARSER::JSON
_metrics:
    -
        _value.double:
            _value: switchCapRealSersMaxEnt
        _tags:
            "im.name":
                _constant: "real-servers-limit"
            "live-config":
                _constant: "true"
            "display-name":
                _constant: "Real Servers Defined - Limit"
            "im.dstype.displayType":
                _constant: "number"

radware_realservers_defined_limit

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

import com.indeni.server.rules.RuleContext
import com.indeni.server.rules.library.NearingCapacityTemplateRule

/**
  *
  */
case class radware_realservers_defined_limit() extends NearingCapacityTemplateRule(
  ruleName = "radware_realservers_defined_limit",
  ruleFriendlyName = "Radware Alteon: Real servers defined limit approaching",
  ruleDescription = "Alteon devices allow for the configuration of multiple real servers, up to a limit. indeni will alert prior to configuration reaching the limit.",
  usageMetricName = "real-servers-usage",
  limitMetricName = "real-servers-limit",
  threshold = 80.0,
  alertDescriptionFormat = "There are %.0f real servers defined where the limit is %.0f.",
  baseRemediationText = "Consider removing certain real servers.")()