fix grafana for zeek

This commit is contained in:
m0duspwnens committed 2020-02-04 17:21:13 -05:00
1 parent 8148be6ec8
commit ad651dbea4
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash
BROLOG=$(tac /host/nsm/bro/logs/packetloss.log | head -2)
declare RESULT=($BROLOG)
ZEEKLOG=$(tac /host/nsm/zeek/logs/packetloss.log | head -2)
declare RESULT=($ZEEKLOG)
CURRENTDROP=${RESULT[3]}
PASTDROP=${RESULT[9]}
DROPPED=$(($CURRENTDROP - $PASTDROP))