mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #335 from Security-Onion-Solutions/feature/helixeps
changes to helixeps script for telegraf
This commit is contained in:
@@ -13,12 +13,12 @@ if [ ! -z "$EVENTCOUNTCURRENT" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${EVENTCOUNTCURRENT}" > $PREVCOUNTFILE
|
echo "${EVENTCOUNTCURRENT}" > $PREVCOUNTFILE
|
||||||
EVENTS=$((EVENTCOUNTCURRENT - EVENTCOUNTPREVIOUS))
|
EVENTS=$(((EVENTCOUNTCURRENT - EVENTCOUNTPREVIOUS)/30))
|
||||||
if [ "$EVENTS" -lt 0 ]; then
|
if [ "$EVENTS" -lt 0 ]; then
|
||||||
EVENTS=0
|
EVENTS=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "helixeps eps=${EVENTS}"
|
echo "helixeps eps=${EVENTS%%.*}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user