mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix titles of similar plugins so they are better grouped in category views
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
parent
3716783a4b
commit
e926acaf5f
6 changed files with 21 additions and 14 deletions
|
@ -209,7 +209,8 @@ graph_config() {
|
|||
|
||||
case "$graph" in
|
||||
.current)
|
||||
echo "graph_title Uplink usage rate for ${SERVICE_USERNAME} (hourly)"
|
||||
echo "graph_title Uplink usage rate (hourly)"
|
||||
echo "graph_info Username: ${SERVICE_USERNAME}; Service ID: ${SERVICE_ID}; Plan: ${SERVICE_PLAN}"
|
||||
echo 'graph_category network'
|
||||
# ${graph_period} is not a shell variable
|
||||
# shellcheck disable=SC2016
|
||||
|
@ -224,7 +225,9 @@ graph_config() {
|
|||
|
||||
;;
|
||||
.daily)
|
||||
echo "graph_title Uplink usage rate for ${SERVICE_USERNAME} (daily)"
|
||||
echo "graph_title Uplink usage rate (daily)"
|
||||
echo "graph_info Username: ${SERVICE_USERNAME}; Service ID: ${SERVICE_ID}; Plan: ${SERVICE_PLAN}"
|
||||
echo "graph_info Uplink usage rate (daily)"
|
||||
echo 'graph_category network'
|
||||
# ${graph_period} is not a shell variable
|
||||
# shellcheck disable=SC2016
|
||||
|
@ -237,14 +240,15 @@ graph_config() {
|
|||
;;
|
||||
*)
|
||||
#.usage)
|
||||
echo "graph_title Uplink usage for ${SERVICE_USERNAME}"
|
||||
echo "graph_title Uplink usage"
|
||||
echo "graph_info Username: ${SERVICE_USERNAME}; Service ID: ${SERVICE_ID}; Plan: ${SERVICE_PLAN}"
|
||||
echo 'graph_category network'
|
||||
echo 'graph_vlabel bytes'
|
||||
echo 'graph_period hour'
|
||||
|
||||
echo "usage.label Total usage"
|
||||
echo "usage.draw AREA"
|
||||
echo "usage.extinfo ${SERVICE_PLAN}; rollover: ${SERVICE_ROLLOVER}"
|
||||
echo "ideal.extinfo Quota rollover: ${SERVICE_ROLLOVER}"
|
||||
echo "ideal.label Ideal usage"
|
||||
echo "ideal.draw LINE"
|
||||
echo "ideal.colour FFA500"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue