plugins/if: include "Interface" to graph_title for better grouping

Nowadays network interfaces have names like docker0, team0, ip_vti0, eno,
wlp61s0 and so on. Including word "Interface" in beginning of
graph_title groups these graphs together in web interface, not randomly
before/after other network-graphs (ipconntrack, firewall, ...).

See commit 70711831c44 in munin repository for similar change.
This commit is contained in:
Kim B. Heino 2020-10-07 11:49:31 +03:00 committed by Lars Kruse
parent 8046268893
commit e6f5722a04
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
config_if() {
INTERFACE=$1
echo "graph_order down up"
echo "graph_title $INTERFACE traffic"
echo "graph_title Interface $INTERFACE traffic"
echo "graph_args --base 1000"
echo "graph_vlabel bits in (-) / out (+) per \${graph_period}"
echo "graph_category network"

View file

@ -1,7 +1,7 @@
config_if_err() {
INTERFACE=$1
echo "graph_order rcvd trans"
echo "graph_title $INTERFACE errors"
echo "graph_title Interface $INTERFACE errors"
echo "graph_args --base 1000"
echo "graph_vlabel packets in (-) / out (+) per \${graph_period}"
echo "graph_category network"