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