NTP servers configured do not match requirement-checkpoint-secureplatform

NTP servers configured do not match requirement-checkpoint-secureplatform
0

NTP servers configured do not match requirement-checkpoint-secureplatform

Vendor: checkpoint

OS: secureplatform

Description:
Indeni can verify that certain NTP servers are configured on a specific device.

Remediation Steps:
Update the configuration of the device to match the requirement.

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

crossvendor_compliance_check_ntp_servers

// Deprecation warning : Scala template-based rules are deprecated. Please use YAML format rules instead.

package com.indeni.server.rules.library.templatebased.crossvendor.compliance

import com.indeni.server.rules.RuleContext
import com.indeni.server.rules.library.templates.MultiSnapshotComplianceCheckTemplateRule
import com.indeni.server.sensor.models.managementprocess.alerts.dto.AlertSeverity

case class crossvendor_compliance_check_ntp_servers() extends MultiSnapshotComplianceCheckTemplateRule(
  ruleName = "crossvendor_compliance_check_ntp_servers",
  ruleFriendlyName = "Compliance Check: NTP servers configured do not match requirement",
  ruleDescription = "Indeni can verify that certain NTP servers are configured on a specific device.",
  severity = AlertSeverity.WARN,
  metricName = "ntp-servers",
  itemKey = "ipaddress",
  alertDescription = "The list of NTP servers configured on this device does not match the requirement. Please review the list below.",
  baseRemediationText = "Update the configuration of the device to match the requirement.",
  requiredItemsParameterName = "NTP Servers",
  requiredItemsParameterDescription = "Enter the NTP servers required, each one on its own line."
)()