SNMP enablement setting does not match across cluster members-checkpoint-gaia-embedded

SNMP enablement setting does not match across cluster members-checkpoint-gaia-embedded
0

SNMP enablement setting does not match across cluster members-checkpoint-gaia-embedded

Vendor: checkpoint

OS: gaia-embedded

Description:
Indeni will identify when two devices are part of a cluster and alert if the SNMP settings do not match.

Remediation Steps:
Ensure all of the SNMP settings are configured correctly on all cluster members.

chkp-embedded-clish_show_snmp_agent

name: chkp-embedded-clish_show_snmp_agent
description: Run "show snmp agent" over clish
type: monitoring
monitoring_interval: 60 minutes
requires:
    vendor: checkpoint
    os.name: gaia-embedded
comments:
    snmp-enabled:
      why: |
        To check if the snmp agent is enabled or not
      how: |
        By running the Check point clish command "show snmp agent"
      can-with-snmp: false
      can-with-syslog: false
steps:
-   run:
        type: SSH
        command: ${nice-path} -n 15 clish -c "show snmp agent"
    parse:
        type: AWK
        file: show-snmp-agent-embedded.parser.1.awk

cross_vendor_snmp_enabled_comparison

// 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.SnapshotComparisonTemplateRule
import com.indeni.server.rules.RemediationStepCondition

/**
  *
  */
case class cross_vendor_snmp_enabled_comparison() extends SnapshotComparisonTemplateRule(
  ruleName = "cross_vendor_snmp_enabled_comparison",
  ruleFriendlyName = "Clustered Devices: SNMP enablement setting does not match across cluster members",
  ruleDescription = "Indeni will identify when two devices are part of a cluster and alert if the SNMP settings do not match.",
  metricName = "snmp-enabled",
  isArray = false,
  alertDescription = "Devices that are part of a cluster should have the same SNMP configuration. Review the differences below.",
  baseRemediationText = "Ensure all of the SNMP settings are configured correctly on all cluster members.")(
  RemediationStepCondition.VENDOR_CISCO ->
    """|
      |1. Execute the "show snmp" NX-OS command to check the SNMP service status to the pair of the Nexus cluster nodes
      |2. Use the "show run snmp" NX-OS command to review the configuration settings on both peer switches
      |3. Validate that the SNMP config is common on both peer switches""".stripMargin
)