From ce91c5249b84048a484a92a969d66bd912f84c9f Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Mon, 30 Nov 2026 17:53:28 -0500 Subject: [PATCH 1/3] Add example alarm definitions to SOC grid settings --- salt/soc/defaults.yaml | 55 ++++++++++++++++++++++++++++++++++++ salt/soc/soc_soc.yaml | 63 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index ec17a107c..5d5c6e8ad 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -2557,6 +2557,61 @@ soc: grid: maxUploadSize: 26214400 staleMetricsMs: 120000 + exampleAlarms: + - name: Root Disk Usage + metric: disk + metricKey: disk_used_root + operator: gt + threshold: '95' + durationSeconds: 0 + severity: critical + clearedSeverity: info + enabled: true + - name: NSM Disk Usage + metric: disk + metricKey: disk_used_nsm + operator: gt + threshold: '95' + durationSeconds: 0 + severity: critical + clearedSeverity: info + enabled: true + - name: Low PCAP Retention + metric: pcap_retention + metricKey: pcap_retention + operator: lt + threshold: '1' + durationSeconds: 0 + severity: critical + clearedSeverity: info + enabled: true + - name: Suricata Packet Loss + metric: loss + metricKey: suricata_loss + operator: gt + threshold: '5' + durationSeconds: 0 + severity: critical + clearedSeverity: info + enabled: true + - name: Zeek Packet Loss + metric: loss + metricKey: zeek_loss + operator: gt + threshold: '5' + durationSeconds: 0 + severity: critical + clearedSeverity: info + enabled: true + - name: Low Monitor Traffic + metric: net + metricKey: traffic_mon_in + operator: lt + threshold: '5' + durationSeconds: 0 + severity: critical + clearedSeverity: info + enabled: true cases: advanced: false aggregationActionsEnabled: false diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index ff1ab291c..b52d8147e 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -1343,6 +1343,69 @@ soc: staleMetricsMs: description: The age in milliseconds of node metrics when they are considered stale. Stale metrics have a faded appearance on the Grid screen. global: True + exampleAlarms: + description: Example alarms offered on the Grid page's Alarms tab and Options dialog. Each entry is an alarm definition without an ID and needs a name. Added examples become ordinary alarms, and changing an entry here doesn't change alarms already added. Set to an empty list to hide the examples. + global: True + advanced: True + forcedType: "[]{}" + syntax: json + helpLink: grid + uiElements: + - field: name + label: Name + required: True + - field: metric + label: Metric + required: True + - field: metricKey + label: Metric Key + required: False + - field: operator + label: Operator + required: True + options: + - gt + - gte + - lt + - lte + - eq + - ne + - contains + - field: threshold + label: Threshold + required: True + forcedType: string + - field: durationSeconds + label: Duration Seconds + required: False + forcedType: int + - field: severity + label: Severity + required: True + options: + - critical + - high + - medium + - low + - info + - field: clearedSeverity + label: Cleared Severity + required: False + options: + - none + - critical + - high + - medium + - low + - info + - field: enabled + label: Enabled + required: False + forcedType: bool + - field: note + label: Note + required: False + multiline: True case: analyzerNodeId: description: The node ID on which analyzers will be executed. From 4fa5b480353e3ee468d43abdb97228e68e09a2ef Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 1 Dec 2026 15:41:31 -0500 Subject: [PATCH 2/3] Add example alarm definitions to SOC grid settings --- salt/soc/defaults.yaml | 2 +- salt/soc/soc_soc.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index 5d5c6e8ad..482d3e7c4 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -2557,7 +2557,7 @@ soc: grid: maxUploadSize: 26214400 staleMetricsMs: 120000 - exampleAlarms: + recommendedAlarms: - name: Root Disk Usage metric: disk metricKey: disk_used_root diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index b52d8147e..e497b0816 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -1343,8 +1343,8 @@ soc: staleMetricsMs: description: The age in milliseconds of node metrics when they are considered stale. Stale metrics have a faded appearance on the Grid screen. global: True - exampleAlarms: - description: Example alarms offered on the Grid page's Alarms tab and Options dialog. Each entry is an alarm definition without an ID and needs a name. Added examples become ordinary alarms, and changing an entry here doesn't change alarms already added. Set to an empty list to hide the examples. + recommendedAlarms: + description: Recommended alarms offered on the Grid page's Alarms tab and Options dialog. Each entry is an alarm definition without an ID and needs a name. Added recommended alarms become ordinary alarms, and changing an entry here doesn't change alarms already added. Set to an empty list to hide the recommended alarms. global: True advanced: True forcedType: "[]{}" From dfcfa580e5b4e9bf5749bf9f9de23406391fdea7 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Wed, 2 Dec 2026 10:22:17 -0500 Subject: [PATCH 3/3] Add example alarm definitions to SOC grid settings --- salt/soc/defaults.yaml | 12 ++++++------ salt/soc/soc_soc.yaml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index 482d3e7c4..b29ba0b7b 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -2563,7 +2563,7 @@ soc: metricKey: disk_used_root operator: gt threshold: '95' - durationSeconds: 0 + durationSeconds: 300 severity: critical clearedSeverity: info enabled: true @@ -2572,7 +2572,7 @@ soc: metricKey: disk_used_nsm operator: gt threshold: '95' - durationSeconds: 0 + durationSeconds: 300 severity: critical clearedSeverity: info enabled: true @@ -2581,7 +2581,7 @@ soc: metricKey: pcap_retention operator: lt threshold: '1' - durationSeconds: 0 + durationSeconds: 300 severity: critical clearedSeverity: info enabled: true @@ -2590,7 +2590,7 @@ soc: metricKey: suricata_loss operator: gt threshold: '5' - durationSeconds: 0 + durationSeconds: 300 severity: critical clearedSeverity: info enabled: true @@ -2599,7 +2599,7 @@ soc: metricKey: zeek_loss operator: gt threshold: '5' - durationSeconds: 0 + durationSeconds: 300 severity: critical clearedSeverity: info enabled: true @@ -2608,7 +2608,7 @@ soc: metricKey: traffic_mon_in operator: lt threshold: '5' - durationSeconds: 0 + durationSeconds: 300 severity: critical clearedSeverity: info enabled: true diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index e497b0816..88f0b8624 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -1344,7 +1344,7 @@ soc: description: The age in milliseconds of node metrics when they are considered stale. Stale metrics have a faded appearance on the Grid screen. global: True recommendedAlarms: - description: Recommended alarms offered on the Grid page's Alarms tab and Options dialog. Each entry is an alarm definition without an ID and needs a name. Added recommended alarms become ordinary alarms, and changing an entry here doesn't change alarms already added. Set to an empty list to hide the recommended alarms. + description: Recommended alarms offered on the Grid page's Alarms tab and Options dialog. global: True advanced: True forcedType: "[]{}"