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:
parent
81ad9f2bc7
commit
81db94e2d3
43 changed files with 60 additions and 54 deletions
|
@ -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
|
||||
|
|
|
@ -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(' ')}"
|
||||
]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue