#!/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

