2016-10-26 00:34:47 +02:00
|
|
|
#!/bin/sh
|
2012-08-07 07:16:31 +02:00
|
|
|
|
|
|
|
user=''
|
|
|
|
pass=''
|
|
|
|
|
|
|
|
if [ "$1" = "config" ]; then
|
|
|
|
echo "graph_title Transmission seed ratios"
|
|
|
|
echo "graph_vlabel Seed ratio %"
|
2014-09-07 14:20:12 +02:00
|
|
|
echo "graph_category torrent"
|
2012-08-07 07:16:31 +02:00
|
|
|
echo "graph_info This plugin shows your transmission ratios per torrent"
|
2016-10-26 00:34:47 +02:00
|
|
|
transmission-remote -n "$user:$pass" -l | gawk -f /usr/share/munin/plugins/tr_ratios_labels | iconv -f utf-8 -t ascii//translit
|
2012-08-07 07:16:31 +02:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2016-10-26 00:34:47 +02:00
|
|
|
transmission-remote -n "$user:$pass" -l | gawk -f /usr/share/munin/plugins/tr_ratios_data
|