1
0
Fork 0
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:
Olivier Mehani 2019-10-09 15:54:29 +11:00 committed by Lars Kruse
parent 3716783a4b
commit e926acaf5f
6 changed files with 21 additions and 14 deletions

View file

@ -69,11 +69,11 @@ WARN=$((CRIT*(LIFETIME-1)))
case ${1:-} in
config)
cat << EOF
graph_title Fresh (<=${LIFETIME}d) backups archives in ${BACKUP_DIR}
graph_vlabel number
graph_title Fresh backups
graph_info Number of fresh (<=${LIFETIME}d) backups archives in ${BACKUP_DIR}
graph_args -l 0
graph_category backup
freshcount.label number
freshcount.label files fresher than ${LIFETIME}d
freshcount.critical ${CRIT}:
freshcount.warning ${WARN}:
EOF

View file

@ -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"

View file

@ -32,7 +32,8 @@ fi
if [ "$1" = "config" ]; then
echo 'graph_title Hosts denied sshd access in /etc/hosts.deny'
echo 'graph_title Hosts denied sshd access'
echo 'graph_info Hosts denied sshd access in /etc/hosts.deny'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel Hosts denied '
echo 'graph_category system'

View file

@ -364,23 +364,23 @@ graph_config() {
echo 'redirect_udp.label UDP redirections'
;;
*)
echo 'graph_title Freebox connection'
echo 'graph_title Uplink traffic'
echo 'graph_category network'
echo 'graph_vlabel bits per second in (+) / out (-)'
echo 'graph_order main_atm_down main_atm main_wan_down main_wan'
# XXX: parameters duplicated from traffic
# XXX: summary data similar to (more detailed) traffic
echo 'main_wan_down.label WAN down'
echo 'main_wan_down.graph no'
echo 'main_wan_down.cdef main_wan_down,8000,*'
echo 'main_wan.label WAN'
echo 'main_wan.label bps'
echo 'main_wan.negative main_wan_down'
echo 'main_wan.cdef main_wan,8000,*'
echo 'main_atm_down.label ATM down'
echo 'main_atm_down.graph no'
echo 'main_atm_down.cdef main_atm_down,1000,*'
echo 'main_atm.label ATM sync'
echo 'main_atm.label bps (max)'
echo 'main_atm.negative main_atm_down'
echo 'main_atm.cdef main_atm,1000,*'
;;

View file

@ -58,7 +58,8 @@ run_autoconf() {
run_config() {
cat << EOF
graph_title denied sshd access in $DENY
graph_title Hosts denied sshd access
graph_info Hosts denied sshd access in $DENY
graph_args --base 1000 -l 0
graph_vlabel Hosts denied
graph_category security

View file

@ -106,7 +106,8 @@ if [ "$1" = "autoconf" ]; then
fi
if [ "$1" = "config" ]; then
echo 'graph_title SSHD login stats from' "$LOG"
echo 'graph_title SSHD login stats'
echo 'graph_info SSHD login stats from' "$LOG"
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel logins'
echo 'graph_category' security