Model mismatch across cluster members-checkpoint-all

Model mismatch across cluster members-checkpoint-all
0

Model mismatch across cluster members-checkpoint-all

Vendor: checkpoint

OS: all

Description:
Indeni will identify when two devices are part of a cluster and alert if the model of device in use is different.

Remediation Steps:
Replace one of the devices to match the other.

chkp-cpstat-os-monitoring

name: chkp-cpstat-os-monitoring
description: Get information from cpstat os
type: monitoring
monitoring_interval: 50 minute
requires:
    vendor: checkpoint
    asg:
        neq: 'true'
comments:
    model:
        skip-documentation: true
    os-name:
        skip-documentation: true
    vendor:
        skip-documentation: true
    os-version:
        skip-documentation: true
    serial-numbers:
        skip-documentation: true
    chkp-os-build:
        skip-documentation: true
    chkp-os-kernel:
        skip-documentation: true
    chkp-os-bit:
        skip-documentation: true
steps:
-   run:
        type: SSH
        command: ${nice-path} -n 15 cpstat os; ${nice-path} -n 15 clish -c "show version
            all"
    parse:
        type: AWK
        file: os-monitoring.parser.1.awk

cross_vendor_compare_model

// 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 CrossVendorCompareModel() extends SnapshotComparisonTemplateRule(
  ruleName = "cross_vendor_compare_model",
  ruleFriendlyName = "Clustered Devices: Model mismatch across cluster members",
  ruleDescription = "Indeni will identify when two devices are part of a cluster and alert if the model of device in use is different.",
  metricName = "model",
  isArray = false,
  alertDescription = "The members of a cluster of devices must have the same device models in use.",
  baseRemediationText = "Replace one of the devices to match the other.")(
  RemediationStepCondition.VENDOR_JUNIPER ->
    """|1. Run "show version" command to review device model, operating system and software version.
       |2. Each node of SRX must have the same hardware.
       |3. Each node of SRX chassis cluster must be running the same version of Junos.
       |4. Review the following article on Juniper tech support site: <a target="_blank" href=" https://kb.juniper.net/InfoCenter/index?page=content&id=KB15911&actp=METADATA">SRX Getting Started - Troubleshoot High Availability (HA)</a>""".stripMargin
)