mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +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:
parent
31f64337b6
commit
e254623ba1
1 changed files with 6 additions and 6 deletions
|
@ -88,11 +88,11 @@ passwd = os.getenv('pass')
|
||||||
|
|
||||||
def config():
|
def config():
|
||||||
conf = Template("""multigraph ${plugin_name}_throughput
|
conf = Template("""multigraph ${plugin_name}_throughput
|
||||||
graph_title Transmission throughput for ${host}
|
graph_title Transmission throughput
|
||||||
graph_vlabel bytes/${graph_period} in (-) / out (+)
|
graph_vlabel bytes/${graph_period} in (-) / out (+)
|
||||||
graph_args --base 1000
|
graph_args --base 1000
|
||||||
graph_category network
|
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.label throughput
|
||||||
down.type COUNTER
|
down.type COUNTER
|
||||||
down.draw AREA
|
down.draw AREA
|
||||||
|
@ -105,19 +105,19 @@ up.draw AREA
|
||||||
up.min 0
|
up.min 0
|
||||||
|
|
||||||
multigraph ${plugin_name}_activity
|
multigraph ${plugin_name}_activity
|
||||||
graph_title Transmission activity for ${host}
|
graph_title Transmission activity
|
||||||
graph_vlabel torrents
|
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 on ${host}
|
||||||
active.label active
|
active.label active
|
||||||
active.draw AREA
|
active.draw AREA
|
||||||
active.min 0
|
active.min 0
|
||||||
active.colour 77FF6F
|
active.colour COLOUR0
|
||||||
paused.label paused
|
paused.label paused
|
||||||
paused.draw STACK
|
paused.draw STACK
|
||||||
paused.min 0
|
paused.min 0
|
||||||
paused.colour 8F8F8F
|
paused.colour COLOUR8
|
||||||
""")
|
""")
|
||||||
print conf.safe_substitute(plugin_name=plugin_name, host=host)
|
print conf.safe_substitute(plugin_name=plugin_name, host=host)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue