1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

[plugins/transmission] Fixups for consistency

Use standard colours for the transmission_activity plot (but keep a
darker one for paused torrents).

Also, remove the ${host} from the graph_title, and add it in the
graph_info, for better groupability.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2020-05-27 17:55:50 +10:00
parent 31f64337b6
commit e254623ba1

View file

@ -88,11 +88,11 @@ passwd = os.getenv('pass')
def config():
conf = Template("""multigraph ${plugin_name}_throughput
graph_title Transmission throughput for ${host}
graph_title Transmission throughput
graph_vlabel bytes/${graph_period} in (-) / out (+)
graph_args --base 1000
graph_category network
graph_info This graph shows the throughput for Transmission torrents
graph_info This graph shows the throughput for Transmission torrents on ${host}
down.label throughput
down.type COUNTER
down.draw AREA
@ -105,19 +105,19 @@ up.draw AREA
up.min 0
multigraph ${plugin_name}_activity
graph_title Transmission activity for ${host}
graph_title Transmission activity
graph_vlabel torrents
graph_args --base 1000
graph_category network
graph_info This graph shows the number of Transmission torrents
graph_info This graph shows the number of Transmission torrents on ${host}
active.label active
active.draw AREA
active.min 0
active.colour 77FF6F
active.colour COLOUR0
paused.label paused
paused.draw STACK
paused.min 0
paused.colour 8F8F8F
paused.colour COLOUR8
""")
print conf.safe_substitute(plugin_name=plugin_name, host=host)
sys.exit(0)