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
FILES=$(ls -1x /host/nsm/faf/complete/ | wc -l)
FILES=$(ls -1x /host/nsm/strelka/unprocessed | wc -l)
echo "faffiles files=$FILES"
else

View File

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

View File

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

View File

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

View File

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

View File

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