Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / network / bandwidth-OVH-Network @ 8589c6df

Historique | Voir | Annoter | Télécharger (859 octets)

1 f9c1143b McKay1717
#!/bin/sh
2
######################################################################
3
#Plugins for fetch download bandwidth to your server from ovh network#
4
######################################################################
5
#By Nicolas I. (McKay1717)
6
#
7
#
8
9
# CONFIG ------------------------------------------------------------------
10
if [ "$1" = "config" ]; then
11
        echo "graph_title Available download bandwidth to OVH Network"
12
        echo 'graph_args --base 1000 -l 0'
13
        echo 'graph_vlabel MB/s'
14
        echo 'graph_scale no'
15
        echo "download.label download"
16
        exit 0
17
fi
18
#If is not a config action => launch download test
19
echo -n "download.value " #echo key word
20
wget -O /dev/null http://proof.ovh.net/files/1Gb.dat 2>&1\
21
 | grep MB/s | tail -n 1 | cut -d\( -f2 |
22
 cut -d\  -f1
23
#Download with wget and get avr speed during the download