Bond/LACP interface down-checkpoint-gaia,secureplatform

Bond/LACP interface down-checkpoint-gaia,secureplatform
0

Bond/LACP interface down-checkpoint-gaia,secureplatform

Vendor: checkpoint

OS: gaia,secureplatform

Description:
indeni will alert if a bond interface is down.

Remediation Steps:
Review the cause for the interfaces being down.

How does this work?
Use the built-in “asg_bond” command to retreive the detailed bond state.

Why is this important?
An interface in a bond could be down, and the device would still deem the link as up. This is because the default setting is often to consider one link failure as non-critical if there is another link in the bond. This does however mean a loss of redundancy and capacity which might not be noticed.

Without Indeni how would you find this?
An administrator could login and manually run the command.

chkp-asg-bond

name: chkp-asg-bond
description: Run "asg_bond" to determine bond health
type: monitoring
monitoring_interval: 5 minutes
requires:
    vendor: checkpoint
    high-availability: true
    or:
    -   os.name: gaia
    -   os.name: secureplatform
    asg: true
comments:
    bond-state:
        why: |
            An interface in a bond could be down, and the device would still deem the link as up. This is because the default setting is often to consider one link failure as non-critical if there is another link in the bond. This does however mean a loss of redundancy and capacity which might not be noticed.
        how: |
            Use the built-in "asg_bond" command to retreive the detailed bond state.
        without-indeni: |
            An administrator could login and manually run the command.
        can-with-snmp: false
        can-with-syslog: false
        vendor-provided-management: Listing bond status is only available from the
            command line interface.
steps:
-   run:
        type: SSH
        command: ${nice-path} -n 15 asg stat -i local_id && ${nice-path} -n 15 asg_bond
    parse:
        type: AWK
        file: asg-bond.parser.1.awk

cross_vendor_bond_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 cross_vendor_bond_down() extends StateDownTemplateRule(
  ruleName = "cross_vendor_bond_down",
  ruleFriendlyName = "All Devices: Bond/LACP interface down",
  ruleDescription = "indeni will alert if a bond interface is down.",
  metricName = "bond-state",
  applicableMetricTag = "name",
  alertItemsHeader = "Interfaces Affected",
  descriptionStringFormat = "",
  alertDescription = "One or more bond interfaces are down.",
  baseRemediationText = "Review the cause for the interfaces being down.")(
  RemediationStepCondition.VENDOR_CP -> "Use the \"cphaconf show_bond\" command to get additional information.",
  RemediationStepCondition.VENDOR_PANOS -> "Use the \"show lacp\" command to get additional information."
)