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

Reduce number of categories

This commit is contained in:
Gabriele Pohl 2014-09-07 14:20:12 +02:00
parent 81ad9f2bc7
commit 81db94e2d3
43 changed files with 60 additions and 54 deletions

View file

@ -63,7 +63,7 @@ when 'config'
first = true
puts <<CONFIG
graph_title Netstat: #{desc}
graph_category netstat
graph_category network
graph_vlabel current
graph_order #{values.map { |name, _| name.to_s.escape }.join ' '}
CONFIG

View file

@ -66,7 +66,7 @@ class Graph
config_options.concat [
"multigraph #{name(unit)}",
"graph_title Netstat: #{@protocol}: #{@name}#{" (#{unit})" if multigraphs.size > 1}",
"graph_category netstat",
"graph_category network",
"graph_order #{labels_and_negatives.map { |label, _negative| label.escape }.join(' ')}"
]

View file

@ -6,7 +6,7 @@ pass=''
if [ "$1" = "config" ]; then
echo "graph_title Transmission seed ratios"
echo "graph_vlabel Seed ratio %"
echo "graph_category Transmission"
echo "graph_category torrent"
echo "graph_info This plugin shows your transmission ratios per torrent"
transmission-remote -n $user:$pass -l | gawk -f /usr/share/munin/plugins/tr_ratios_labels
exit 0