Repository navigation
Storage running out alert #16364
Replies: 2 comments 2 replies
|
That value is calculated via the In Security Onion Pro there is Grid Alarms that can cover grid metrics such as disk space - https://docs.securityonion.net/en/3/main/notifications/ |
|
No, Hunt can't show it, because that value is never logged. The Storage Overview block comes from InfluxDB is the right place for the alert, since on your standalone node Elasticsearch's data lives on So add a second check with lower thresholds, made from the stock one. On the manager: sudo jq '.[0].metadata.name = "alarm-nsm-disk-low-watermark"
| .[0].spec.name = "NSM Disk Before Low Watermark"
| .[0].spec.thresholds = [{level:"WARN",type:"greater",value:75},{level:"CRIT",type:"greater",value:78}]' \
/opt/so/conf/influxdb/templates/alarm_nsm_disk.json > /tmp/nsm_low.json
A=https://localhost:8086/api/v2
ORG=$(sudo curl -skK /opt/so/conf/influxdb/curl.config "$A/orgs" | jq -r '.orgs[0].id')
sudo curl -skK /opt/so/conf/influxdb/curl.config "$A/templates/apply" -X POST -H 'Content-Type: application/json' \
-d "$(jq -n --arg o "$ORG" --slurpfile t /tmp/nsm_low.json '{orgID:$o, templates:[{contents:$t[0]}]}')"On your disk, 75% leaves about 179 GB before the low watermark and 78% about 71 GB, so adjust to taste. Don't save the file in that templates folder, because Salt cleans it. Then open InfluxDB from the SOC sidebar and go to Alerts: the Notification Endpoints and Notification Rules tabs are what actually send the alert out. I don't have a Security Onion install to hand, so I tested this on InfluxDB 2.7 in Docker using the template from your version, with the same commands apart from the URL and file paths. With Once it's in, can you open the check's gear menu > View History and tell me what it says? At your current 56.6% used it should read |
Uh oh!
There was an error while loading. Please reload this page.
Version
3.3.0
Installation Method
Security Onion ISO image
Description
other (please provide detail below)
Installation Type
Standalone
Location
on-prem with Internet access
Hardware Specs
Exceeds minimum requirements
CPU
32
RAM
1024
Storage for /
468 GB
Storage for /nsm
3838 GB
Network Traffic Collection
span port
Network Traffic Speeds
1Gbps to 10Gbps
Status
Yes, all services on all nodes are running OK
Salt Status
No, there are no failures
Logs
No, there are no additional clues
Detail
Hi, I wanted to know if the Remaining space value can be viewed using the Hunt interface? This is because I want to create a custom alert to notify when remaining space is running low.
Guidelines
All reactions