TACACS servers used do not match across cluster members-checkpoint-gaia,ipso

TACACS servers used do not match across cluster members-checkpoint-gaia,ipso
0

TACACS servers used do not match across cluster members-checkpoint-gaia,ipso

Vendor: checkpoint

OS: gaia,ipso

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

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

How does this work?
Parse the clish configuration database in /config/active and retreive the currently configured TACACS servers. It is also possible to list them using clish, but that generates a large amount of logs in /var/log/messages when done repeatedly.

Why is this important?
If the TACACS servers are configured incorrectly, it might not be possible for an administrator to login to the device.

Without Indeni how would you find this?
An administrator could login and manually run the command.

chkp-clish-show_aaa_tacacs-servers_list

name: chkp-clish-show_aaa_tacacs-servers_list
description: run "show aaa tacacs-servers list" over clish
type: monitoring
monitoring_interval: 60 minutes
requires:
    vendor: checkpoint
    or:
    -   os.name: gaia
    -   os.name: ipso
comments:
    tacacs-servers:
        why: |
            If the TACACS servers are configured incorrectly, it might not be possible for an administrator to login to the device.
        how: |
            Parse the clish configuration database in /config/active and retreive the currently configured TACACS servers. It is also possible to list them using clish, but that generates a large amount of logs in /var/log/messages when done repeatedly.
        without-indeni: |
            An administrator could login and manually run the command.
        can-with-snmp: false
        can-with-syslog: false
        vendor-provided-management: |
            Listing TACACS servers is only available from the command line interface and WebUI.
    tacacs-enabled:
        skip-documentation: true
steps:
-   run:
        type: SSH
        command: ${nice-path} -n 15  egrep "aaa[^:]*:auth_profile:base_tacplus_authprofile"
            /config/active
    parse:
        type: AWK
        file: show-aaa-tacacs-servers-list.parser.1.awk

cross_vendor_tacacs_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
/**
  *
  */
case class cross_vendor_tacacs_servers_comparison() extends SnapshotComparisonTemplateRule(
  ruleName = "cross_vendor_tacacs_servers_comparison",
  ruleFriendlyName = "Clustered Devices: TACACS servers used do not match across cluster members",
  ruleDescription = "indeni will identify when two devices are part of a cluster and alert if the TACACS servers they are using are different.",
  metricName = "tacacs-servers",
  isArray = true,
  alertDescription = "Devices that are part of a cluster should have the same TACACS servers configured. Review the differences below.",
  baseRemediationText = "Review the TACACS configuration on each device to ensure they match.")()