Skip to content

Commit de557b6

Browse files
authored
Add Cisco ACI critical fault sample monitor. Add Faults to Cisco ACI dashboard. (#20024)
* Add Cisco ACI critical fault sample monitor. * Add critical fault monitor to manifest. * Add Faults to Cisco ACI dashboard. * Filter faults by service:cisco-aci also.
1 parent 1cc5061 commit de557b6

File tree

3 files changed

+117
-2
lines changed

3 files changed

+117
-2
lines changed

cisco_aci/assets/dashboards/cisco_aci_dashboard.json

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,6 +1413,91 @@
14131413
"width": 12,
14141414
"height": 8
14151415
}
1416+
},
1417+
{
1418+
"id": 2956975389292306,
1419+
"definition": {
1420+
"title": "Faults",
1421+
"background_color": "vivid_purple",
1422+
"show_title": true,
1423+
"type": "group",
1424+
"layout_type": "ordered",
1425+
"widgets": []
1426+
},
1427+
"layout": {
1428+
"x": 0,
1429+
"y": 34,
1430+
"width": 12,
1431+
"height": 1
1432+
}
1433+
},
1434+
{
1435+
"id": 987022990164424,
1436+
"definition": {
1437+
"title": "",
1438+
"title_size": "16",
1439+
"title_align": "left",
1440+
"requests": [
1441+
{
1442+
"response_format": "event_list",
1443+
"query": {
1444+
"data_source": "logs_stream",
1445+
"query_string": "service:cisco-aci source:cisco-aci",
1446+
"indexes": [],
1447+
"storage": "hot"
1448+
},
1449+
"columns": [
1450+
{
1451+
"field": "status_line",
1452+
"width": "auto"
1453+
},
1454+
{
1455+
"field": "timestamp",
1456+
"width": "auto"
1457+
},
1458+
{
1459+
"field": "host",
1460+
"width": "auto"
1461+
},
1462+
{
1463+
"field": "status",
1464+
"width": "auto"
1465+
},
1466+
{
1467+
"field": "content",
1468+
"width": "compact"
1469+
},
1470+
{
1471+
"field": "@cisco_aci.ack",
1472+
"width": "auto"
1473+
},
1474+
{
1475+
"field": "@cisco_aci.cause",
1476+
"width": "auto"
1477+
},
1478+
{
1479+
"field": "@cisco_aci.code",
1480+
"width": "auto"
1481+
},
1482+
{
1483+
"field": "@cisco_aci.occur",
1484+
"width": "auto"
1485+
},
1486+
{
1487+
"field": "@cisco_aci.severity",
1488+
"width": "auto"
1489+
}
1490+
]
1491+
}
1492+
],
1493+
"type": "list_stream"
1494+
},
1495+
"layout": {
1496+
"x": 0,
1497+
"y": 0,
1498+
"width": 12,
1499+
"height": 7
1500+
}
14161501
}
14171502
],
14181503
"template_variables": [
@@ -1434,4 +1519,4 @@
14341519
"layout_type": "ordered",
14351520
"notify_list": [],
14361521
"reflow_type": "fixed"
1437-
}
1522+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": 2,
3+
"created_at": "2025-04-08",
4+
"last_updated_at": "2025-04-08",
5+
"title": "Cisco ACI critical fault received",
6+
"description": "This monitor alerts if a Cisco ACI critical fault is received",
7+
"definition": {
8+
"name": "[Cisco ACI] critical fault received, {{[@cisco_aci.severity].name}} severity, code {{[@cisco_aci.code].name}}, dn {{[@cisco_aci.dn].name}}",
9+
"type": "log alert",
10+
"query": "logs(\"service:cisco-aci source:cisco-aci @cisco_aci.severity:critical\").index(\"*\").rollup(\"count\").by(\"@cisco_aci.code,@cisco_aci.dn,@cisco_aci.severity\").last(\"5m\") > 0",
11+
"message": "{{#is_alert}}\n{{[@cisco_aci.severity].name}} severity, code {{[@cisco_aci.code].name}} for dn {{[@cisco_aci.dn].name}}\n\n@example@example.com \n{{/is_alert}}",
12+
"tags": [],
13+
"options": {
14+
"thresholds": {
15+
"critical": 0
16+
},
17+
"enable_logs_sample": true,
18+
"notify_audit": false,
19+
"on_missing_data": "default",
20+
"include_tags": true,
21+
"new_group_delay": 60,
22+
"avalanche_window": 10,
23+
"groupby_simple_monitor": false
24+
}
25+
},
26+
"tags": [
27+
"integration:cisco-aci"
28+
]
29+
}

cisco_aci/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"monitors": {
5353
"CPU usage is high for Cisco ACI device": "assets/monitors/cpu_high.json",
5454
"Health score of device is critical": "assets/monitors/critical_health_score.json",
55-
"Interface for a Cisco ACI device is down": "assets/monitors/interface_down.json"
55+
"Interface for a Cisco ACI device is down": "assets/monitors/interface_down.json",
56+
"Cisco ACI critical severity fault": "assets/monitors/critical_fault.json"
5657
},
5758
"logs": {
5859
"source": "cisco-aci"

0 commit comments

Comments
 (0)