Permalink
Browse files

Fix multiping to show packetloss correctly

  • Loading branch information...
1 parent 2496a23 commit 1e19d7a34b0f26bc5601fe537409915bcf714347 @jkjuopperi jkjuopperi committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/node.d/multiping.in
@@ -82,5 +82,5 @@ do
${ping:-ping} ${ping_args:-'-c 2'} ${hosts} ${ping_args2} \
| perl -n -e 'print "site$ENV{'site'}.value ", $1 / 1000, "\n"
if m@min/avg/max.*\s\d+(?:\.\d+)?/(\d+(?:\.\d+)?)/\d+(?:\.\d+)?@;
- print "packetloss.value $1\n" if /(\d+)% packet loss/;'
+ print "site$ENV{'site'}_packetloss.value $1\n" if /(\d+)% packet loss/;'
done

0 comments on commit 1e19d7a

Please sign in to comment.