2
0
Fork 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
Kenyon Ralph 85721e6446 move Transmission ratios plugin to network directory
Alongside the existing Transmission plugin.
2013-03-03 16:22:38 -08:00

16 lines
454 B
Bash
Executable file

#!/bin/bash
user=''
pass=''
if [ "$1" = "config" ]; then
echo "graph_title Transmission seed ratios"
echo "graph_vlabel Seed ratio %"
echo "graph_category Transmission"
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
exit 0
fi
transmission-remote -n $user:$pass -l | gawk -f /usr/share/munin/plugins/tr_ratios_data