mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-02-02 21:33:56 +01:00
28 lines
1.3 KiB
JSON
28 lines
1.3 KiB
JSON
[{
|
|
"apiVersion": "influxdata.com/v2alpha1",
|
|
"kind": "CheckThreshold",
|
|
"metadata": {
|
|
"name": "zeek-packet-loss"
|
|
},
|
|
"spec": {
|
|
"description": "Triggers when the average percent of packet loss is above the defined threshold. To tune this alert, modify the value for the appropriate alert level.",
|
|
"every": "1m",
|
|
"name": "Zeek Packet Loss",
|
|
"query": "from(bucket: \"telegraf/so_short_term\")\n |\u003e range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |\u003e filter(fn: (r) =\u003e r[\"_measurement\"] == \"zeekdrop\")\n |\u003e filter(fn: (r) =\u003e r[\"_field\"] == \"drop\")\n |\u003e map(fn: (r) =\u003e ({r with \"_value\": r._value * 100.0}))\n |\u003e map(fn: (r) =\u003e ({ r with _value: int(v: r._value) }))\n |\u003e aggregateWindow(every: 1m, fn: mean, createEmpty: false)\n |\u003e yield(name: \"mean\")",
|
|
"status": "active",
|
|
"statusMessageTemplate": "Zeek Packet Loss on node ${r.host} has reached the ${ r._level } threshold. The current packet loss is ${ r.drop }%.",
|
|
"thresholds": [
|
|
{
|
|
"level": "CRIT",
|
|
"type": "greater",
|
|
"value": 5
|
|
},
|
|
{
|
|
"level": "WARN",
|
|
"type": "greater",
|
|
"value": 3
|
|
}
|
|
]
|
|
}
|
|
}]
|