Radius servers configured do not match requirement-checkpoint-secureplatform

secureplatform
warn
checkpoint
Radius servers configured do not match requirement-checkpoint-secureplatform
0

#1

Radius servers configured do not match requirement-checkpoint-secureplatform

Vendor: checkpoint

OS: secureplatform

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

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

chkp-secureplatform-radius_servers_show

#! META
name: chkp-secureplatform-radius_servers_show
description: displays list of radius servers
type: monitoring
monitoring_interval: 10 minutes
requires:
    vendor: checkpoint
    os.name: secureplatform

#! COMMENTS
radius-servers:
    skip-documentation: true

radius-super-user-id:
    skip-documentation: true

#! REMOTE::SSH
${nice-path} -n 15 radius servers show

#! PARSER::AWK

BEGIN {
	priority = 0
}

# 1.1.1.1:3022           superSecret            1  [MyRadiusServer]
/[0-9]/ {
	split($1,splitArr,":")
	host = splitArr[1]
	port = splitArr[2]
	timeout = $3
	
	if (port == "") {
		# No port set, using default
		port = 1812
	}

	servers[priority, "priority"] = priority
	servers[priority, "timeout"] = timeout
	servers[priority, "host"] = host
	servers[priority, "port"] = port
	priority++
}

END {
	writeComplexMetricObjectArray("radius-servers", null, servers)
}

CrossVendorRadiusServersComplianceCheckRule

package com.indeni.server.rules.library.templatebased.crossvendor.compliance
import com.indeni.server.rules.library.templates.MultiSnapshotComplianceCheckTemplateRule
import com.indeni.server.sensor.models.managementprocess.alerts.dto.AlertSeverity

case class CrossVendorRadiusServersComplianceCheckRule() extends MultiSnapshotComplianceCheckTemplateRule(
  ruleName = "CrossVendorRadiusServersComplianceCheckRule",
  ruleFriendlyName = "Compliance Check: Radius servers configured do not match requirement",
  ruleDescription = "Indeni can verify that certain Radius servers are configured on a specific device.",
  severity = AlertSeverity.WARN,
  metricName = "radius-servers",
  itemKey = "host",
  alertDescription = "The list of Radius 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 = "Radius Servers",
  requiredItemsParameterDescription = "Enter the Radius servers required, each one on its own line."
)()