Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COL-1109: Added More Blackhole RCA Rules #940

Open
wants to merge 1 commit into
base: jcloud
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions juniper_official/Solutions/Traffic-Blackhole/chassis-alarms.rule
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
* Rule to collect Chassis Alarms for Blackhole Detection RCA.
*/
healthbot {
topic hardware.fpc {
rule chassis-alarms {
keys [ fru-slot fru-type error-name ];
synopsis "Chassis Alarms";
description "Chassis Alarms";
sensor sensor-chassis-alarms {
synopsis "Chassis Alarms";
description "Chassis Alarms";
open-config {
sensor-name /junos/system/cmerror/counters/;
frequency 60s;
}
}
field fru-slot {
sensor sensor-chassis-alarms {
path "/junos/chassis/cmerror/counters/fru-slot";
}
type string;
description "FRU Slot";
}
field fru-type {
sensor sensor-chassis-alarms {
path "/junos/chassis/cmerror/counters/fru-type";
}
type string;
description "FRU Type";
}
field error-name {
sensor sensor-chassis-alarms {
path "/junos/chassis/cmerror/counters/@name";
}
type string;
description "Error Name";
}
field error-count {
sensor sensor-chassis-alarms {
path "/junos/chassis/cmerror/counters/occur-count";
}
type integer;
description "Alarm Occurrences";
}
field error-active {
sensor sensor-chassis-alarms {
path "/junos/chassis/cmerror/counters/enabled";
}
type string;
description "Alarm State";
}
rule-properties {
version 1;
contributor juniper;
category advanced;
supported-healthbot-version 4.2.0;
supported-devices {
juniper {
operating-system junosEvolved {
products PTX {
platforms PTX10008 {
releases 22.2R1 {
release-support min-supported-release;
}
}
}
products ACX {
platforms All {
releases 22.3R1 {
release-support min-supported-release;
}
}
}
}
}
}
}
}
}
}
74 changes: 74 additions & 0 deletions juniper_official/Solutions/Traffic-Blackhole/fabric-interrups.rule
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Rule to collect Fabric Block CM Errors and Interrupts for Blackhole Detection RCA.
*/
healthbot {
topic hardware.fpc {
rule fabric-interrupts {
keys [ fpc-name error-name ];
synopsis "Fabric Block CM Errors and Interrupts";
description "Fabric Block CM Errors and Interrupts";
sensor sensor-interrupts {
synopsis "Fabric Block CM Errors and Interrupts";
description "Fabric Block CM Errors and Interrupts";
open-config {
sensor-name /components/component/integrated-circuit/pipeline-counters/errors/;
frequency 60s;
}
}
field fpc-name {
sensor sensor-interrupts {
path "/components/component/@name";
}
type string;
description "FPC Name";
}
field error-name {
sensor sensor-interrupts {
path "/components/component/integrated-circuit/pipeline-counters/errors/fabric-block/fabric-block-error/@name";
}
type string;
description "Error Name";
}
field error-count {
sensor sensor-interrupts {
path "/components/component/integrated-circuit/pipeline-counters/errors/fabric-block/fabric-block-error/state/count";
}
type integer;
description "Interrupt Occurrences";
}
field error-active {
sensor sensor-interrupts {
path "/components/component/integrated-circuit/pipeline-counters/errors/fabric-block/fabric-block-error/state/active";
}
type string;
description "Interrupt State";
}
rule-properties {
version 1;
contributor juniper;
category advanced;
supported-healthbot-version 4.2.0;
supported-devices {
juniper {
operating-system junosEvolved {
products PTX {
platforms PTX10008 {
releases 22.2R1 {
release-support min-supported-release;
}
}
}
products ACX {
platforms All {
releases 22.3R1 {
release-support min-supported-release;
}
}
}
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Rule to collect Host-Interface Block CM Errors and Interrupts for Blackhole Detection RCA.
*/
healthbot {
topic hardware.fpc {
rule host-interface-interrupts {
keys [ fpc-name error-name ];
synopsis "Host-Interface Block CM Errors and Interrupts";
description "Host-Interface Block CM Errors and Interrupts";
sensor sensor-interrupts {
synopsis "Host-Interface Block CM Errors and Interrupts";
description "Host-Interface Block CM Errors and Interrupts";
open-config {
sensor-name /components/component/integrated-circuit/pipeline-counters/errors/;
frequency 60s;
}
}
field fpc-name {
sensor sensor-interrupts {
path "/components/component/@name";
}
type string;
description "FPC Name";
}
field error-name {
sensor sensor-interrupts {
path "/components/component/integrated-circuit/pipeline-counters/errors/host-interface-block/host-interface-block-error/@name";
}
type string;
description "Error Name";
}
field error-count {
sensor sensor-interrupts {
path "/components/component/integrated-circuit/pipeline-counters/errors/host-interface-block/host-interface-block-error/state/count";
}
type integer;
description "Interrupt Occurrences";
}
field error-active {
sensor sensor-interrupts {
path "/components/component/integrated-circuit/pipeline-counters/errors/host-interface-block/host-interface-block-error/state/active";
}
type string;
description "Interrupt State";
}
rule-properties {
version 1;
contributor juniper;
category advanced;
supported-healthbot-version 4.2.0;
supported-devices {
juniper {
operating-system junosEvolved {
products PTX {
platforms PTX10008 {
releases 22.2R1 {
release-support min-supported-release;
}
}
}
products ACX {
platforms All {
releases 22.3R1 {
release-support min-supported-release;
}
}
}
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Rule to collect Host Process CPU and Memory Utilization for Blackhole Detection RCA.
*/
healthbot {
topic hardware.fpc {
rule host-process-cpu-memory {
keys [ fpc-name process-name ];
synopsis "Host Process CPU and Memory Utilization";
description "Host Process CPU and Memory Utilization";
sensor sensor-host-process-cpu-memory {
synopsis "Host Process CPU and Memory Utilization";
description "Host Process CPU and Memory Utilization";
open-config {
sensor-name /junos/system/linecard/cpu/memory/;
frequency 60s;
}
}
field fpc-name {
sensor sensor-host-process-cpu-memory {
path "/system-process/component/@name";
}
type string;
description "FPC Name";
}
field process-name {
sensor sensor-host-process-cpu-memory {
path "/system-process/component/process/@processName";
}
type string;
description "Error Name";
}
field process-cpu {
sensor sensor-host-process-cpu-memory {
path "/system-process/component/process/processCpu";
}
type integer;
description "Process CPU Utilization";
}
field process-memory {
sensor sensor-host-process-cpu-memory {
path "/system-process/component/process/processMem";
}
type integer;
description "Process Memory Utilization";
}
rule-properties {
version 1;
contributor juniper;
category advanced;
supported-healthbot-version 4.2.0;
supported-devices {
juniper {
operating-system junosEvolved {
products PTX {
platforms PTX10008 {
releases 22.2R1 {
release-support min-supported-release;
}
}
}
products ACX {
platforms All {
releases 22.3R1 {
release-support min-supported-release;
}
}
}
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Rule to collect Interface Block CM Errors and Interrupts for Blackhole Detection RCA.
*/
healthbot {
topic hardware.fpc {
rule interface-interrupts {
keys [ fpc-name error-name ];
synopsis "Interface Block CM Errors and Interrupts";
description "Interface Block CM Errors and Interrupts";
sensor sensor-interrupts {
synopsis "Interface Block CM Errors and Interrupts";
description "Interface Block CM Errors and Interrupts";
open-config {
sensor-name /components/component/integrated-circuit/pipeline-counters/errors/;
frequency 60s;
}
}
field fpc-name {
sensor sensor-interrupts {
path "/components/component/@name";
}
type string;
description "FPC Name";
}
field error-name {
sensor sensor-interrupts {
path "/components/component/integrated-circuit/pipeline-counters/errors/interface-block/interface-block-error/@name";
}
type string;
description "Error Name";
}
field error-count {
sensor sensor-interrupts {
path "/components/component/integrated-circuit/pipeline-counters/errors/interface-block/interface-block-error/state/count";
}
type integer;
description "Interrupt Occurrences";
}
field error-active {
sensor sensor-interrupts {
path "/components/component/integrated-circuit/pipeline-counters/errors/interface-block/interface-block-error/state/active";
}
type string;
description "Interrupt State";
}
rule-properties {
version 1;
contributor juniper;
category advanced;
supported-healthbot-version 4.2.0;
supported-devices {
juniper {
operating-system junosEvolved {
products PTX {
platforms PTX10008 {
releases 22.2R1 {
release-support min-supported-release;
}
}
}
products ACX {
platforms All {
releases 22.3R1 {
release-support min-supported-release;
}
}
}
}
}
}
}
}
}
}
Loading