NTP servers used do not match across cluster members-checkpoint-secureplatform

NTP servers used do not match across cluster members-checkpoint-secureplatform
0

NTP servers used do not match across cluster members-checkpoint-secureplatform

Vendor: checkpoint

OS: secureplatform

Description:
Indeni will identify when two devices are part of a cluster and alert if the NTP servers they are using are different.

Remediation Steps:
Review the NTP configuration on each device to ensure they match.

chkp-secureplatform-sysconfig_ntp

name: chkp-secureplatform-sysconfig_ntp
description: show configured NTP servers
type: monitoring
monitoring_interval: 10 minutes
requires:
    vendor: checkpoint
    os.name: secureplatform
comments:
    ntp-servers:
      why: |
        To check the configration of the NTP servers
      how: |
        By Runing the configuration in the file /etc/sysconfig/ntp
      can-with-snmp: false
      can-with-syslog: false

steps:
-   run:
        type: SSH
        command: ${nice-path} -n 15 cat /etc/sysconfig/ntp
    parse:
        type: AWK
        file: sysconfig-ntp.parser.1.awk

cross_vendor_ntp_servers_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.sensor.models.managementprocess.alerts.dto.AlertSeverity

/**
  *
  */
case class cross_vendor_ntp_servers_comparison() extends SnapshotComparisonTemplateRule(
  ruleName = "cross_vendor_ntp_servers_comparison",
  ruleFriendlyName = "Clustered Devices: NTP servers used do not match across cluster members",
  ruleDescription = "Indeni will identify when two devices are part of a cluster and alert if the NTP servers they are using are different.",
  severity = AlertSeverity.WARN,
  metricName = "ntp-servers",
  isArray = true,
  alertDescription = "Devices that are part of a cluster must have the same NTP servers used. Review the differences below.",
  baseRemediationText = "Review the NTP configuration on each device to ensure they match.")()