Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: yeled/contrib
base: 3842461477
...
head fork: yeled/contrib
compare: 7c3ecf1bc5
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 7 additions and 4 deletions.
  1. +7 −4 plugins/network/mtr100_
View
11 plugins/network/mtr100_
@@ -7,6 +7,9 @@
# Author: tobias.geiger@vido.info
# Please email me bugs/suggestions
#
+# Version: 1.1
+# Author: charlie@evilforbeginners.com
+# changed: munin eats 1 character ds-names. prefix with "hop_"
#
#
# HINT: Needs a bigger TIMEOUT-Value than the default (10) in /etc/munin/plugin-conf.d/munin-node ,
@@ -47,7 +50,7 @@ fi
dotrace() {
-LC_ALL=C mtr -nrs 1024 -c 10 $totrace | grep -v "^HOST:" | LC_ALL=C awk -v C=$1 ' {
+LC_ALL=C mtr -nrs 1024 -c 5 $totrace | grep -v "^HOST:" | LC_ALL=C awk -v C=$1 ' {
label=$2
x=gsub("\\.","_",label)
@@ -62,9 +65,9 @@ total+=$6
END {
for (x=1; x<=count; x++) {
value=(val[x]/total)*100
- if ( C != "config" ) { printf "%s.value %2.2f\n",lab[x],value }
- if ( C == "config" ) { print lab[x] ".label " name[x] }
- if ( C == "config" ) { if ( x == 1 ) { print lab[x]".draw AREA" } else { print lab[x]".draw STACK" } }
+ if ( C != "config" ) { printf "%s.value %2.2f\n","hop_" lab[x],value }
+ if ( C == "config" ) { print "hop_" lab[x] ".label " name[x] }
+ if ( C == "config" ) { if ( x == 1 ) { print "hop_" lab[x]".draw AREA" } else { print "hop_" lab[x]".draw STACK" } }
}
}'
}

No commit comments for this range

Something went wrong with that request. Please try again.