1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

[transmission] Show counts as stacked areas

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2019-10-10 12:17:33 +11:00 committed by Lars Kruse
parent cfe070ea38
commit 6ca9f65af9

View file

@ -95,13 +95,13 @@ graph_category network
graph_info This graph shows the throughput for Transmission torrents graph_info This graph shows the throughput for Transmission torrents
down.label throughput down.label throughput
down.type COUNTER down.type COUNTER
down.draw LINE1 down.draw AREA
down.min 0 down.min 0
down.graph no down.graph no
up.label sent up.label Bps
up.negative down up.negative down
up.type COUNTER up.type COUNTER
up.draw LINE1 up.draw AREA
up.min 0 up.min 0
multigraph ${plugin_name}_activity multigraph ${plugin_name}_activity
@ -110,16 +110,12 @@ graph_vlabel torrents
graph_args --base 1000 graph_args --base 1000
graph_category network graph_category network
graph_info This graph shows the number of Transmission torrents graph_info This graph shows the number of Transmission torrents
total.label total
total.draw AREA
total.min 0
total.colour AFE3FF
active.label active active.label active
active.draw AREA active.draw AREA
active.min 0 active.min 0
active.colour 77FF6F active.colour 77FF6F
paused.label paused paused.label paused
paused.draw LINE1 paused.draw STACK
paused.min 0 paused.min 0
paused.colour 8F8F8F paused.colour 8F8F8F
""") """)
@ -152,11 +148,6 @@ def fetch():
def print_values_activity(stats): def print_values_activity(stats):
print "multigraph {plugin_name}_activity".format(plugin_name=plugin_name) print "multigraph {plugin_name}_activity".format(plugin_name=plugin_name)
try:
print "total.value %s" % stats.torrentCount
except:
print "total.value U"
try: try:
print "active.value %s" % stats.activeTorrentCount print "active.value %s" % stats.activeTorrentCount
except: except: