You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.3 KiB

  1. --- a/munin-node.in
  2. +++ b/munin-node.in
  3. @@ -72,17 +72,17 @@ RES=""
  4. for PLUG in $PLUGINS
  5. do
  6. if [ "$PLUG" = "if_" ]; then
  7. - for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
  8. + for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\|br-\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
  9. do
  10. - INTERRES=$(echo $INTER | sed 's/\./VLAN/')
  11. + INTERRES=$(echo $INTER | sed -e 's/\./VLAN/' -e 's/\-/_/')
  12. RES="$RES if_$INTERRES"
  13. eval "fetch_if_${INTERRES}() { fetch_if $INTER $@; };"
  14. eval "config_if_${INTERRES}() { config_if $INTER $@; };"
  15. done
  16. elif [ "$PLUG" = "if_err_" ]; then
  17. - for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
  18. + for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\|br-\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
  19. do
  20. - INTERRES=$(echo $INTER | sed 's/\./VLAN/')
  21. + INTERRES=$(echo $INTER | sed -e 's/\./VLAN/' -e 's/\-/_/')
  22. RES="$RES if_err_$INTERRES"
  23. eval "fetch_if_err_${INTERRES}() { fetch_if_err $INTER $@; };"
  24. eval "config_if_err_${INTERRES}() { config_if_err $INTER $@; };"