High memory usage-juniper-junos
Vendor: juniper
OS: junos
Description:
Indeni will alert if the memory utilization of a device is above a high threshold. If the device has multiple memory elements, each will be inspected separately and alert for.
Remediation Steps:
Determine the cause for the high memory usage of the listed elements.
How does this work?
This script run the “show chassis routing-engine node X” command via SSH connection to retrieve the memory usage for both Control and Data plane.
Why is this important?
The various memory components are important to ensure smooth operation. They include Control and Data plane memory usage.
Without Indeni how would you find this?
An administrator needs to log in the device to run the “show chassis routing-engine node X” command to retrieve memory usage for Control and Data plane.
junos-show-chassis-routing-engine-cluster
name: junos-show-chassis-routing-engine-cluster
description: Retrieve the statistics and memory for the Routing Engine(CPU/mem).
type: monitoring
includes_resource_data: true
monitoring_interval: 1 minute
requires:
vendor: juniper
os.name: junos
product: firewall
high-availability: true
comments:
cpu-usage:
why: |
Control and data plane CPU utilization is important to track to ensure smooth operation.
A high CPU utilization of the control plane may impact the management interface, while a high CPU utilization in the data plane may impact traffic handling.
how: |
This script run the "show chassis routing-engine node X" command via SSH connection to retrieve the routing engine CPU usage.
can-with-snmp: false
can-with-syslog: false
memory-usage:
why: |
The various memory components are important to ensure smooth operation. They include control and data plane memory usage.
how: |
This script run the "show chassis routing-engine node X" command via SSH connection to retrieve the memory usage for both Control and Data plane.
can-with-snmp: false
can-with-syslog: false
memory-total-kbytes:
why: |
Tracking total memory on the system is critical to evaluate and assess current memory utilizatiion.
how: |
This script run the "show chassis routing-engine node X" command via SSH connection to retrieve the total memory for both Control and Data plane.
can-with-snmp: false
can-with-syslog: false
memory-free-kbytes:
why: |
Tracking free memory on the system is critical to evaluate memory utilization and identify possible memory leaks.
how: |
This script run the "show chassis routing-engine node X" command via SSH connection to retrieve the free memory for both Control and Data plane.
can-with-snmp: false
can-with-syslog: false
steps:
- run:
type: SSH
command: show chassis hardware node local | display xml
parse:
type: XML
file: show-chassis-routing-engine-cluster.parser.1.xml.yaml
- run:
type: SSH
command: show chassis routing-engine node ${node} | display xml
parse:
type: XML
file: show-chassis-routing-engine-cluster.parser.2.xml.yaml
cross_vendor_high_memory_usage
Failed to fetch the data: https://bitbucket.org/indeni/indeni-knowledge/src/master/rules/templatebased/crossvendor/cross_vendor_high_memory_usage.scala