Temperature nearing maximum-checkpoint-all

Temperature nearing maximum-checkpoint-all
0

Temperature nearing maximum-checkpoint-all

Vendor: checkpoint

OS: all

Description:
The temperature reported by the device is nearing the maximum allowed. If any of the temperatures is nearing its maximum limit, an alert will be issued.

Remediation Steps:
Check the hardware sensor values on the device and handle cause for high temperature

chkp-asg-hw_monitor

name: chkp-asg-hw_monitor
description: Collect hardware component status across all 61k chassis's
type: monitoring
monitoring_interval: 2 minutes
requires:
    vendor: checkpoint
    chassis: true
comments:
    hardware-element-status:
        skip-documentation: true
    temperature-sensor-current:
        skip-documentation: true
    temperature-sensor-max:
        skip-documentation: true
steps:
-   run:
        type: SSH
        command: ${nice-path} -n 15 asg stat -i local_id && ${nice-path} -n 15 asg
            hw_monitor
    parse:
        type: AWK
        file: asg-hw_monitor.parser.1.awk

chkp-asg-hw_monitor

name: chkp-asg-hw_monitor
description: Collect hardware component status across all 61k chassis's
type: monitoring
monitoring_interval: 2 minutes
requires:
    vendor: checkpoint
    chassis: true
comments:
    hardware-element-status:
        skip-documentation: true
    temperature-sensor-current:
        skip-documentation: true
    temperature-sensor-max:
        skip-documentation: true
steps:
-   run:
        type: SSH
        command: ${nice-path} -n 15 asg stat -i local_id && ${nice-path} -n 15 asg
            hw_monitor
    parse:
        type: AWK
        file: asg-hw_monitor.parser.1.awk

TemperatureNearingMaximum

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

/**
  *
  */
case class TemperatureNearingMaximum() extends NearingCapacityWithItemsTemplateRule(
  ruleName = "TemperatureNearingMaximum",
  ruleFriendlyName = "All Devices: Temperature nearing maximum",
  ruleDescription = "The temperature reported by the device is nearing the maximum allowed. If any of the temperatures is nearing its maximum limit, an alert will be issued.",
  usageMetricName = "temperature-sensor-current",
  limitMetricName = "temperature-sensor-max",
  applicableMetricTag = "name",
  threshold = 90.0,
  alertDescription = "The temperature reported by the device is nearing the maximum allowed. If any of the temperatures is nearing its maximum limit, an alert will be issued. If not addressed in a timely manner, permanent damage can result with initial symptoms being that of poor performance and loss or corruption of data. Firewalls can overheat due to several different factors. Some examples include a broken fan, undersized CPU, poor circulation or high temperatures in the room it is stored.",
  alertItemDescriptionFormat = "Sensor: %.0f where the maximum limit is %.0f.",
  baseRemediationText = "Check the hardware sensor values on the device and handle cause for high temperature",
  alertItemsHeader = "Device Sensors")(
  RemediationStepCondition.VENDOR_PANOS ->
    """|
       | Run the command "show system environmentals" on the device to display the sensor values.
    """.stripMargin
)