1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00
Commit graph

18 commits

Author SHA1 Message Date
Kris-Mikael Krister
b6cd969be0
Add example graphs for the deluge plugin 2021-08-17 20:59:18 +02:00
Kris-Mikael Krister
edf886e0f8
Reformat deluge_ with black and flake8 2021-08-17 20:55:02 +02:00
Kris-Mikael Krister
99c788031d
Improve code readability and consistency
This commit:

- Changes to Python 3 template string rather than the formatted string
  syntax.
- Calls the Deluge API once per plugin run for the "states" mode, rather
  than once per torrent. Lines of code are reduced. The readability is
  improved too, since the API call is similar to how the "peers" mode
  works.
- Updates the label for the "state" entry "paused" to match it's name in the
  libtorrent API: "stopped". "Queued" is split into "Queued seeding" and
  "Queued downloads" to match the libtorrent API too.
2021-08-11 14:41:27 +02:00
Kris-Mikael Krister
13b9078f76 Update the Deluge plugin to handle Deluge 2.x
Version 1.0.0 of this plugin requires version 1 of Deluge. Deluge 2 was
released in June 2019.

This commits bumps the plugin to version 2.0.0.

This plugin has three modes. The modes "bandwidth" and "states" are
working equally to the previous version.  The third mode, "connections",
is changed.

The connections mode previously printed one value: the total number of
connections.  That RPC call is removed in Deluge 2, and I'm instead
using `get_session_status`, which delegates the call to libtorrent [1].
libtorrent is much better documented, so it's easier to work with
compared to Deluge.

"Number of peers" replaces the previous "number of connections", and
I've added half open peers, and peers interested in download and upload
slots to the same graph.

[1]. https://libtorrent.org/manual-ref.html#session-statistics
2021-08-08 15:27:36 +02:00
Lars Kruse
7063330e03 Fix python style issues reported by flake8
Additionally some python2-only "print" statements are now compatible
with python3.
2019-12-18 00:25:39 +01:00
Lars Kruse
6b42464ca7 Plugin deluge_: fix style issues 2018-03-27 05:04:12 +02:00
Neraud
0736033f4d Add executable bit 2017-08-14 11:28:44 +02:00
Neraud
205205aefd Fix exit code for autoconf
The plugin should always return 0
2017-07-30 09:40:31 +02:00
Neraud
1283bec05e Fix printing error message to stdout when running the plugin 2017-07-30 09:39:56 +02:00
Neraud
f84eee6118 Improve log usage
Migrate to lazy message evaluation
2017-07-30 09:38:26 +02:00
Neraud
ac255fa70d Improve code style 2017-07-30 09:32:02 +02:00
Neraud
262bee468d Improve config
AREASTACK for states
Fix stacking and negative for bandwidth
2017-07-21 12:37:08 +02:00
Neraud
70d3c5ed02 Change graph_category to the well-known 'filetransfer' 2017-07-21 11:00:01 +02:00
Neraud
0dd06a6b73 Improve doc
- Migrate style to perldoc
- Improve requirements
- Add interpretation
- Add licence
2017-07-21 11:00:00 +02:00
Neraud
2370d4e742 Improve import handling and autoconf 2017-07-21 11:00:00 +02:00
Neraud
1c0739641f Improve code style 2017-07-21 11:00:00 +02:00
Neraud
5fd233c510 Format code according to PEP0008 2017-07-21 10:59:59 +02:00
Neraud
0f88253361 Move deluge_ plugin to a "torrent" folder 2017-07-16 10:43:48 +02:00