Sensor Dashboard - Add unprocessed file count

This commit is contained in:
Mike Reeves
2018-11-29 15:34:27 -05:00
parent 8ad2b31b71
commit bc1bde0fb0
3 changed files with 20 additions and 0 deletions

View File

@@ -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:

View File

@@ -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"

View File

@@ -0,0 +1,5 @@
#!/bin/bash
FILES=$(ls -1q /host/nsm/faf/complete/ | wc -l)
echo "faffiles files=$FILES"