A python plugin for collectd to get stats from a runnning transmission server.
Project description
# Introduction #
A python plugin for integrating collectd and transmission. With this
installed, collectd will be querying transmission for the following:
* downloadedBytes
* uploadedBytes
* filesAdded
* secondsActive
* activeTorrentCount
* blocklist\_size
* downloadSpeed
* uploadSpeed
* pausedTorrentCount
* torrentCount
and creating the relevant RRD files (or pushing to graphite or whatever
you have collectd doing)
# How to install #
I assume a Debian system here, amend accordingly for your system
If you have not already installed transmision, install it:
apt-get install transmission-daemon
The above install the daemon cause a headless box is assumed. It should
probably work with a non headless box as well and a normal transmission
installation but this has not been tested.
Install the python transmission binding
apt-get install python-transmissionrpc
Install collectd.
apt-get install collectd
## Use the python package ##
pip install collectd_transmission
## Do it manually ##
Clone the repo, copy the module directory somewhere in your fileystem
# Configure #
Insert the following in your collectd.conf
<Plugin python>
ModulePath "/path/to/module/dir" # Not needed if installed via pip or package
LogTraces false
Interactive false
Import "collectd_transmission"
<Module collectd_transmission>
username "myuser" # Required
password "mypass" # Required
address "http://localhost:9091/transmission/rpc" # Optional, defaults to "http://localhost:9091/transmission/rpc"
timeout "5" # Optional, defaults to 5
</Module>
</Plugin>
modified accordingly to your needs. Restart collectd and you are done.
sudo service collectd restart
There should be rrds for transmission under collectd's data directory.
Most probably that is /var/lib/collectd/rrd/_hostname_/transmission/
## How to display your data ##
Well if you got collectd, you probably already have a way of displaying
your data anyway. If you don't there are various frontends available at:
[https://collectd.org/wiki/index.php/List\_of\_front-ends](https://collectd.org/wiki/index.php/List\_of\_front-ends)
# Compatibility #
Developed and tested on Debian Wheezy system. Feel free to submit PRs for other systems support
A python plugin for integrating collectd and transmission. With this
installed, collectd will be querying transmission for the following:
* downloadedBytes
* uploadedBytes
* filesAdded
* secondsActive
* activeTorrentCount
* blocklist\_size
* downloadSpeed
* uploadSpeed
* pausedTorrentCount
* torrentCount
and creating the relevant RRD files (or pushing to graphite or whatever
you have collectd doing)
# How to install #
I assume a Debian system here, amend accordingly for your system
If you have not already installed transmision, install it:
apt-get install transmission-daemon
The above install the daemon cause a headless box is assumed. It should
probably work with a non headless box as well and a normal transmission
installation but this has not been tested.
Install the python transmission binding
apt-get install python-transmissionrpc
Install collectd.
apt-get install collectd
## Use the python package ##
pip install collectd_transmission
## Do it manually ##
Clone the repo, copy the module directory somewhere in your fileystem
# Configure #
Insert the following in your collectd.conf
<Plugin python>
ModulePath "/path/to/module/dir" # Not needed if installed via pip or package
LogTraces false
Interactive false
Import "collectd_transmission"
<Module collectd_transmission>
username "myuser" # Required
password "mypass" # Required
address "http://localhost:9091/transmission/rpc" # Optional, defaults to "http://localhost:9091/transmission/rpc"
timeout "5" # Optional, defaults to 5
</Module>
</Plugin>
modified accordingly to your needs. Restart collectd and you are done.
sudo service collectd restart
There should be rrds for transmission under collectd's data directory.
Most probably that is /var/lib/collectd/rrd/_hostname_/transmission/
## How to display your data ##
Well if you got collectd, you probably already have a way of displaying
your data anyway. If you don't there are various frontends available at:
[https://collectd.org/wiki/index.php/List\_of\_front-ends](https://collectd.org/wiki/index.php/List\_of\_front-ends)
# Compatibility #
Developed and tested on Debian Wheezy system. Feel free to submit PRs for other systems support
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for collectd_transmission-v1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec6ce68ca57934656cdca482563b65e639823afeb2324e0a169f53626d2f5e3 |
|
MD5 | 8ab8bd79ff21833e2b52e71a5731d9d7 |
|
BLAKE2b-256 | db7a759cbc1a751d5b93d5c1cc0fcb2d0e4536f1078dc6768d1ce6504778d86e |