mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
9 lines
218 B
Bash
9 lines
218 B
Bash
#!/bin/bash
|
|
|
|
# Get the data
|
|
OLDPCAP=$(find /host/nsm/pcap -type f -exec stat -c'%n %Z' {} + | sort | grep -v "\." | head -n 1 | awk {'print $2'})
|
|
DATE=$(date +%s)
|
|
AGE=$(($DATE - $OLDPCAP))
|
|
|
|
echo "pcapage seconds=$AGE"
|