|
|
@ -0,0 +1,20 @@ |
|
|
|
--- a/munin-node.in 2015-11-07 17:52:54.000000000 +0100
|
|
|
|
+++ b/munin-node.in 2015-11-07 18:09:06.117200499 +0100
|
|
|
|
@@ -72,7 +72,7 @@
|
|
|
|
for PLUG in $PLUGINS |
|
|
|
do |
|
|
|
if [ "$PLUG" = "if_" ]; then |
|
|
|
- for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\|br-\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
|
|
|
+ for INTER in $(grep -E '^ *(ppp|eth|wlan|ath|ra|ipsec|tap|br-)[^:]{1,}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
|
|
|
do |
|
|
|
INTERRES=$(echo $INTER | sed -e 's/\./VLAN/' -e 's/\-/_/') |
|
|
|
RES="$RES if_$INTERRES" |
|
|
|
@@ -80,7 +80,7 @@
|
|
|
|
eval "config_if_${INTERRES}() { config_if $INTER $@; };" |
|
|
|
done |
|
|
|
elif [ "$PLUG" = "if_err_" ]; then |
|
|
|
- for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\|br-\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
|
|
|
+ for INTER in $(grep -E '^ *(ppp|eth|wlan|ath|ra|ipsec|tap|br-)[^:]{1,}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
|
|
|
do |
|
|
|
INTERRES=$(echo $INTER | sed -e 's/\./VLAN/' -e 's/\-/_/') |
|
|
|
RES="$RES if_err_$INTERRES" |