Communication between management server and specific devices not working-f5-all

Communication between management server and specific devices not working-f5-all
0

Communication between management server and specific devices not working-f5-all

Vendor: f5

OS: all

Description:
A management server needs to communicate with its managed devices at all times. indeni will alert if the communication is broken.

Remediation Steps:
Troubleshoot any possible connectivity issues.

How does this work?
This script uses the F5 iControl REST API to retrieve the current list of the configured devices and their states.

Why is this important?
If a device is considered as down from BIG-IQ, then monitoring and automation targeting the device would be impacted.

Without Indeni how would you find this?
The device state is available by logging into the BIG-IQ Web Interface, choosing the Device Management module and then “BIG-IP DEVICES”.

f5-rest-mgmt-cm-system-machineid-resolver-state

name: f5-rest-mgmt-cm-system-machineid-resolver-state
description: Determine the state of the added devices in BIG-IQ
type: monitoring
monitoring_interval: 10 minutes
requires:
    vendor: f5
    product: big-iq
    rest-api: 'true'
comments:
    trust-connection-state:
        why: |
            If a device is considered as down from BIG-IQ, then monitoring and automation targeting the device would be impacted.
        how: |
            This script uses the F5 iControl REST API to retrieve the current list of the configured devices and their states.
        without-indeni: |
            The device state is available by logging into the BIG-IQ Web Interface, choosing the Device Management module and then "BIG-IP DEVICES".
        can-with-snmp: false
        can-with-syslog: false
steps:
-   run:
        type: HTTP
        command: /mgmt/cm/system/machineid-resolver
    parse:
        type: JSON
        file: rest-mgmt-cm-system-machineid-resolver-state.parser.1.json.yaml
-   run:
        type: HTTP
        command: /mgmt/cm/system/machineid-resolver/${machineId}/stats
    parse:
        type: JSON
        file: rest-mgmt-cm-system-machineid-resolver-state.parser.2.json.yaml

cross_vendor_connection_from_mgmt_to_device

// 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.ruleengine.expressions.conditions.EndsWithRepetition
import com.indeni.server.rules.RuleContext
import com.indeni.server.rules.library.templates.StateDownTemplateRule
import com.indeni.server.rules.RemediationStepCondition

/**
  *
  */
case class cross_vendor_connection_from_mgmt_to_device() extends StateDownTemplateRule(
  ruleName = "cross_vendor_connection_from_mgmt_to_device",
  ruleFriendlyName = "All Devices: Communication between management server and specific devices not working",
  ruleDescription = "A management server needs to communicate with its managed devices at all times. indeni will alert if the communication is broken.",
  metricName = "trust-connection-state",
  applicableMetricTag = "name",
  alertItemsHeader = "Unreachable Managed Devices",
  alertDescription = "Some of the devices managed by this device cannot be reached by the management device. " +
    "Please review the list below. Note that the list may include devices that are not covered by indeni at this " +
    "point, as the check is done from the management server to all managed devices.",
  historyLength = 2,
  baseRemediationText = "Troubleshoot any possible connectivity issues.") (
  RemediationStepCondition.VENDOR_CP -> "Read https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk60522"
)