fix grafana for zeek

This commit is contained in:
m0duspwnens
2020-02-04 17:21:13 -05:00
parent 8148be6ec8
commit ad651dbea4
3 changed files with 6 additions and 6 deletions

View File

@@ -1395,7 +1395,7 @@
"condition": "AND", "condition": "AND",
"key": "container_name", "key": "container_name",
"operator": "=", "operator": "=",
"value": "so-bro" "value": "so-zeek"
} }
] ]
} }
@@ -1913,7 +1913,7 @@
"condition": "AND", "condition": "AND",
"key": "container_name", "key": "container_name",
"operator": "=", "operator": "=",
"value": "so-bro" "value": "so-zeek"
} }
] ]
} }

View File

@@ -1396,7 +1396,7 @@
"condition": "AND", "condition": "AND",
"key": "container_name", "key": "container_name",
"operator": "=", "operator": "=",
"value": "so-bro" "value": "so-zeek"
} }
] ]
} }
@@ -1901,7 +1901,7 @@
"condition": "AND", "condition": "AND",
"key": "container_name", "key": "container_name",
"operator": "=", "operator": "=",
"value": "so-bro" "value": "so-zeek"
} }
] ]
} }

View File

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