mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Sensor Dashboard - Add unprocessed file count
This commit is contained in:
@@ -35,6 +35,18 @@ brospooldir:
|
||||
- user: 937
|
||||
- makedirs: true
|
||||
|
||||
brosfafincompletedir:
|
||||
file.directory:
|
||||
- name: /nsm/faf/files/incomplete
|
||||
- user: 937
|
||||
- makedirs: true
|
||||
|
||||
brosfafcompletedir:
|
||||
file.directory:
|
||||
- name: /nsm/faf/files/complete
|
||||
- user: 937
|
||||
- makedirs: true
|
||||
|
||||
# Sync the policies
|
||||
bropolicysync:
|
||||
file.recurse:
|
||||
|
||||
@@ -628,6 +628,7 @@
|
||||
commands = [
|
||||
"/scripts/stenoloss.sh",
|
||||
"/scripts/suriloss.sh",
|
||||
"/scripts/checkfiles.sh",
|
||||
"/scripts/oldpcap.sh"
|
||||
]
|
||||
data_format = "influx"
|
||||
@@ -637,6 +638,8 @@
|
||||
commands = [
|
||||
"/scripts/redis.sh",
|
||||
"/scripts/stenoloss.sh",
|
||||
"/scripts/suriloss.sh",
|
||||
"/scripts/checkfiles.sh",
|
||||
"/scripts/oldpcap.sh"
|
||||
]
|
||||
data_format = "influx"
|
||||
|
||||
5
salt/common/telegraf/scripts/checkfiles.sh
Normal file
5
salt/common/telegraf/scripts/checkfiles.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILES=$(ls -1q /host/nsm/faf/complete/ | wc -l)
|
||||
|
||||
echo "faffiles files=$FILES"
|
||||
Reference in New Issue
Block a user