mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Bro - Add cron for checking PL
This commit is contained in:
@@ -8,6 +8,5 @@ DROPPED=$(($CURRENTDROP - $PASTDROP))
|
|||||||
CURRENTPACKETS=${RESULT[5]}
|
CURRENTPACKETS=${RESULT[5]}
|
||||||
PASTPACKETS=${RESULT[11]}
|
PASTPACKETS=${RESULT[11]}
|
||||||
TOTAL=$(($CURRENTPACKETS - $PASTPACKETS))
|
TOTAL=$(($CURRENTPACKETS - $PASTPACKETS))
|
||||||
echo "cd $CURRENTDROP pd $PASTDROP dr $DROPPED cp $CURRENTPACKETS pp $PASTPACKETS ttl $TOTAL"
|
|
||||||
LOSS=$(echo $DROPPED $TOTAL / p | dc)
|
LOSS=$(echo $DROPPED $TOTAL / p | dc)
|
||||||
echo "brodrop drop=$LOSS"
|
echo "brodrop drop=$LOSS"
|
||||||
|
|||||||
Reference in New Issue
Block a user