mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-03 22:58:20 +00:00
15 lines
486 B
Bash
Executable file
15 lines
486 B
Bash
Executable file
#!/bin/sh
|
|
|
|
user=''
|
|
pass=''
|
|
|
|
if [ "$1" = "config" ]; then
|
|
echo "graph_title Transmission seed ratios"
|
|
echo "graph_vlabel Seed ratio %"
|
|
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
|