Skip to content

Commit

Permalink
Fix multiping to show packetloss correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jkjuopperi committed Oct 9, 2012
1 parent 2496a23 commit 1e19d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/node.d/multiping.in
Expand Up @@ -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.