2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/plugins/network/transmission_ratios/tr_ratios

16 lines
486 B
Plaintext
Raw Normal View History

#!/bin/sh
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"
echo "graph_info This plugin shows your transmission ratios per torrent"
transmission-remote -n "$user:$pass" -l | gawk -f /usr/share/munin/plugins/tr_ratios_labels | iconv -f utf-8 -t ascii//translit
exit 0
fi
transmission-remote -n "$user:$pass" -l | gawk -f /usr/share/munin/plugins/tr_ratios_data