mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-28 20:03:44 +01:00
Telegraf - Track Oldest PCAP
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
# Get the data
|
||||
OLDPCAP=$(find /nsm/pcap -type f -printf '%Cs %p\n' | sort | head -n 1 | awk {'print $1'})
|
||||
DATE=$(date +%s)
|
||||
AGE=$(expr $DATE - $OLDPCAP)
|
||||
AGE=$(($DATE - $OLDPCAP))
|
||||
|
||||
echo "pcapage seconds=$AGE"
|
||||
|
||||
Reference in New Issue
Block a user