Projet

Général

Profil

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

root / plugins / network / bandwidth-OVH-Network @ 1ae4ac09

Historique | Voir | Annoter | Télécharger (897 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 34eeebbe Lars Kruse
        echo 'graph_category network'
16 f9c1143b McKay1717
        echo "download.label download"
17
        exit 0
18
fi
19
#If is not a config action => launch download test
20
echo -n "download.value " #echo key word
21
wget -O /dev/null http://proof.ovh.net/files/1Gb.dat 2>&1\
22
 | grep MB/s | tail -n 1 | cut -d\( -f2 |
23
 cut -d\  -f1
24
#Download with wget and get avr speed during the download