mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
[transmission] Show counts as stacked areas
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
parent
cfe070ea38
commit
6ca9f65af9
1 changed files with 4 additions and 13 deletions
|
@ -95,13 +95,13 @@ graph_category network
|
|||
graph_info This graph shows the throughput for Transmission torrents
|
||||
down.label throughput
|
||||
down.type COUNTER
|
||||
down.draw LINE1
|
||||
down.draw AREA
|
||||
down.min 0
|
||||
down.graph no
|
||||
up.label sent
|
||||
up.label Bps
|
||||
up.negative down
|
||||
up.type COUNTER
|
||||
up.draw LINE1
|
||||
up.draw AREA
|
||||
up.min 0
|
||||
|
||||
multigraph ${plugin_name}_activity
|
||||
|
@ -110,16 +110,12 @@ graph_vlabel torrents
|
|||
graph_args --base 1000
|
||||
graph_category network
|
||||
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.draw AREA
|
||||
active.min 0
|
||||
active.colour 77FF6F
|
||||
paused.label paused
|
||||
paused.draw LINE1
|
||||
paused.draw STACK
|
||||
paused.min 0
|
||||
paused.colour 8F8F8F
|
||||
""")
|
||||
|
@ -152,11 +148,6 @@ def fetch():
|
|||
|
||||
def print_values_activity(stats):
|
||||
print "multigraph {plugin_name}_activity".format(plugin_name=plugin_name)
|
||||
try:
|
||||
print "total.value %s" % stats.torrentCount
|
||||
except:
|
||||
print "total.value U"
|
||||
|
||||
try:
|
||||
print "active.value %s" % stats.activeTorrentCount
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue