Corrected alert_rules.json file to container proper JSON. (#12033)

This commit is contained in:
Nate Byers
2020-08-26 01:54:14 -04:00
committed by GitHub
parent 94fae616a4
commit 2b0643086b

View File

@@ -1,7 +1,7 @@
[
{
"rule": "macros.device_down = \"1\"",
"name": "Devices up/down",
"name": "Devices up/down"
},
{
"rule": "macros.device_down = \"1\" && devices.status_reason = \"icmp\"",
@@ -22,12 +22,12 @@
{
"rule": "bgpPeers.bgpPeerState != \"established\" && macros.device_up = \"1\" && bgpPeers.bgpPeerAdminStatus != \"stop\"",
"name": "BGP Session down",
"extra": "{\"count\": 1}",
"extra": "{\"count\": 1}"
},
{
"rule": "bgpPeers.bgpPeerFsmEstablishedTime < \"300\" && bgpPeers.bgpPeerState = \"established\" && macros.device_up = \"1\"",
"name": "BGP Session established",
"extra": "{\"count\": 1}",
"extra": "{\"count\": 1}"
},
{
"rule": "macros.port_down = \"1\"",
@@ -73,12 +73,12 @@
{
"rule": "wireless_sensors.sensor_type == \"arubaos\" && wireless_sensors.sensor_class == \"ap-count\" && wireless_sensors.sensor_alert = \"1\" && macros.device_up = \"1\" && wireless_sensors.sensor_current <= `wireless_sensors.sensor_limit_low_warn` && wireless_sensors.sensor_current > `wireless_sensors.sensor_limit_low`",
"name": "Aruba Wireless AP Count Low Warning",
"severity": "warning",
"severity": "warning"
},
{
"rule": "wireless_sensors.sensor_type == \"arubaos\" && wireless_sensors.sensor_class == \"ap-count\" && wireless_sensors.sensor_alert = \"1\" && macros.device_up = \"1\" && wireless_sensors.sensor_current <= `wireless_sensors.sensor_limit_low`",
"name": "Aruba Wireless AP Count Low Critical",
"severity": "critical",
"severity": "critical"
},
{
"rule": "macros.state_sensor_critical && sensors.sensor_alert = 1",
@@ -87,7 +87,7 @@
},
{
"rule": "macros.state_sensor_warning && sensors.sensor_alert = 1",
"name": "State Sensor Warning",
"name": "State Sensor Warning"
},
{
"rule": "macros.bill_quota_over_quota >= \"75\"",
@@ -431,21 +431,21 @@
},
{
"rule": "customoids.customoid_current >= `customoids.customoid_limit` && customoids.customoid_alert = \"1\" && macros.device_up = \"1\"",
"name": "CustomOID over limit",
"name": "CustomOID over limit"
},
{
"rule": "customoids.customoid_current <= `customoids.customoid_limit_low` && customoids.customoid_alert = \"1\" && macros.device_up = \"1\"",
"name": "CustomOID under limit",
"name": "CustomOID under limit"
},
{
"rule": "customoids.customoid_current >= `customoids.customoid_limit_warn` && customoids.customoid_alert = \"1\" && macros.device_up = \"1\"",
"name": "CustomOID over warning limit",
"severity": "warning",
"severity": "warning"
},
{
"rule": "customoids.customoid_current <= `customoids.customoid_limit_low_warn` && customoids.customoid_alert = \"1\" && macros.device_up = \"1\"",
"name": "CustomOID under warning limit",
"severity": "warning",
"severity": "warning"
},
{
"rule": "applications.app_type = \"ups-nut\" && state_indexes.state_name = \"UPSOnBattery\" && macros.state_sensor_warning = 1",