Change EPS for Telegraf

This commit is contained in:
Mike Reeves
2021-04-19 13:29:46 -04:00
parent 54322f5e9d
commit 0c0edbaac8
13 changed files with 25 additions and 26 deletions

View File

@@ -16,9 +16,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
THEGREP=$(ps -ef | grep $0 | grep -v grep)
THEGREP=$(ps -ef | grep $0 | grep -v $$ | grep -v grep)
if [ ! $THEGREP ]; then
if [ ! "$THEGREP" ]; then
SURILOG=$(tac /var/log/suricata/stats.log | grep kernel | head -4)
CHECKIT=$(echo $SURILOG | grep -o 'drop' | wc -l)