Change EPS for Telegraf

This commit is contained in:
Mike Reeves
2021-04-19 14:20:00 -04:00
parent 0c0edbaac8
commit be6933e8fb
6 changed files with 6 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ THEGREP=$(ps -ef | grep $0 | grep -v $$ | grep -v grep)
if [ ! "$THEGREP" ]; then if [ ! "$THEGREP" ]; then
FILES=$(ls -1x /host/nsm/faf/complete/ | wc -l) FILES=$(ls -1x /host/nsm/strelka/unprocessed | wc -l)
echo "faffiles files=$FILES" echo "faffiles files=$FILES"
else else

View File

@@ -39,7 +39,7 @@ if [ ! "$THEGREP" ]; then
fi fi
echo "consumptioneps eps=${EVENTS%%.*}" echo "consumptioneps eps=${EVENTS%%.*}"
fi
else else
exit 0 exit 0
fi fi

View File

@@ -38,6 +38,7 @@ if [ ! "$THEGREP" ]; then
fi fi
echo "helixeps eps=${EVENTS%%.*}" echo "helixeps eps=${EVENTS%%.*}"
fi
else else
exit 0 exit 0
fi fi

View File

@@ -42,6 +42,7 @@ if [ ! "$THEGREP" ]; then
LOSS=$(echo 4 k $DROPPED $TOTAL / p | dc) LOSS=$(echo 4 k $DROPPED $TOTAL / p | dc)
echo "suridrop drop=$LOSS" echo "suridrop drop=$LOSS"
fi fi
fi
else else
echo "suridrop drop=0" echo "suridrop drop=0"
fi fi

View File

@@ -44,6 +44,7 @@ if [ ! "$THEGREP" ]; then
fi fi
fi fi
echo "$CURRENTTS" > $LASTCAPTURELOSSLOG echo "$CURRENTTS" > $LASTCAPTURELOSSLOG
fi
else else
exit 0 exit 0
fi fi

View File

@@ -42,6 +42,7 @@ if [ ! "$THEGREP" ]; then
TOTAL=$((CURRENTPACKETS - PASTPACKETS)) TOTAL=$((CURRENTPACKETS - PASTPACKETS))
LOSS=$(echo 4 k $DROPPED $TOTAL / p | dc) LOSS=$(echo 4 k $DROPPED $TOTAL / p | dc)
echo "zeekdrop drop=$LOSS" echo "zeekdrop drop=$LOSS"
fi
else else
exit 0 exit 0
fi fi