From 78bb6f750b78845c23d038eb5b37c85f8c027135 Mon Sep 17 00:00:00 2001 From: Mike O'Driscoll Date: Tue, 23 Dec 2014 18:37:53 -0500 Subject: [PATCH] Removing erroneous line from mtr output. Newer versions of mtr outputs a "Start: " line which would be picked up and incorrectly graphed in munin. Adding an additional inverse grep field to remove this extra line if it is present. Also added case insensitive flag to the grep. --- plugins/network/mtr100_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/network/mtr100_ b/plugins/network/mtr100_ index ff40a9cb..2e439519 100755 --- a/plugins/network/mtr100_ +++ b/plugins/network/mtr100_ @@ -50,7 +50,7 @@ fi dotrace() { -LC_ALL=C mtr -nrs 1024 -c 5 $totrace | grep -v "^HOST:" | LC_ALL=C awk -v C=$1 ' { +LC_ALL=C mtr -nrs 1024 -c 5 $totrace | grep -vi -E "^HOST:|^Start:" | LC_ALL=C awk -v C=$1 ' { label=$2 x=gsub("\\.","_",label)