mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 11:12:51 +01:00
9 lines
191 B
Bash
9 lines
191 B
Bash
#!/bin/bash
|
|
|
|
# Get the data
|
|
OLDPCAP=$(find /nsm/pcap -type f -printf '%Cs %p\n' | sort | head -n 1 | awk {'print $1'})
|
|
DATE=$(date +%s)
|
|
AGE=$(($DATE - $OLDPCAP))
|
|
|
|
echo "pcapage seconds=$AGE"
|