-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiperf
25 lines (21 loc) · 834 Bytes
/
iperf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
# iperf_ munin grabber script
# use it with iperf_munin.sh and set it with a 30mn cronjob
# server was set on bouygues.iperf.fr but you can find a list here (https://iperf.cc/) or here (https://iperf.fr/iperf-servers.php)
# 2019 moondark
if [ "$1" = "config" ]; then
echo "graph_title iperf to bouygues.iperf.fr"
echo 'graph_vlabel Mbits/sec'
echo 'graph_args --base 1000 --lower-limit 0 --upper-limit 130'
echo 'graph_category network'
echo 'graph_period second'
echo "graph_info This instance of iperf measures the transmit speed to bouygues.iperf.fr"
echo 'down.label DownSpeed'
echo 'down.draw AREA'
echo 'up.label UpSpeed'
echo 'up.draw LINE1'
else
echo "$(</etc/munin/iperf.down)"
echo "$(</etc/munin/iperf.up)"
fi