From f9c1143bd7b241c57ea0fa02f8c43979c1946cde Mon Sep 17 00:00:00 2001 From: McKay1717 Date: Mon, 28 Jul 2014 11:52:45 +0200 Subject: [PATCH] Add Bandwidth Test whith a file on a reference server in OVH network --- plugins/network/bandwidth-OVH-Network | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 plugins/network/bandwidth-OVH-Network diff --git a/plugins/network/bandwidth-OVH-Network b/plugins/network/bandwidth-OVH-Network new file mode 100755 index 00000000..e3bed44b --- /dev/null +++ b/plugins/network/bandwidth-OVH-Network @@ -0,0 +1,23 @@ +#!/bin/sh +###################################################################### +#Plugins for fetch download bandwidth to your server from ovh network# +###################################################################### +#By Nicolas I. (McKay1717) +# +# + +# CONFIG ------------------------------------------------------------------ +if [ "$1" = "config" ]; then + echo "graph_title Available download bandwidth to OVH Network" + echo 'graph_args --base 1000 -l 0' + echo 'graph_vlabel MB/s' + echo 'graph_scale no' + echo "download.label download" + exit 0 +fi +#If is not a config action => launch download test +echo -n "download.value " #echo key word +wget -O /dev/null http://proof.ovh.net/files/1Gb.dat 2>&1\ + | grep MB/s | tail -n 1 | cut -d\( -f2 | + cut -d\ -f1 +#Download with wget and get avr speed during the download