mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
Added support for if_ and if_err_ on ppp devices
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@21 35caa317-6b62-4e8a-81c0-b04f0c356266
This commit is contained in:
parent
78f7079596
commit
3b23188011
1 changed files with 2 additions and 2 deletions
|
@ -68,14 +68,14 @@ RES=""
|
|||
for PLUG in $PLUGINS
|
||||
do
|
||||
if [ "$PLUG" = "if_" ]; then
|
||||
for INTER in $(grep '^ *\(eth\|wlan\|ath\|ra\)[0-9]\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
||||
for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\)[0-9]\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
||||
do
|
||||
RES="$RES if_$INTER"
|
||||
eval "fetch_if_${INTER}() { fetch_if $INTER $@; };"
|
||||
eval "config_if_${INTER}() { config_if $INTER $@; };"
|
||||
done
|
||||
elif [ "$PLUG" = "if_err_" ]; then
|
||||
for INTER in $(grep '^ *\(eth\|wlan\|ath\|ra\)[0-9]\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
||||
for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\)[0-9]\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
||||
do
|
||||
RES="$RES if_err_$INTER"
|
||||
eval "fetch_if_err_${INTER}() { fetch_if_err $INTER $@; };"
|
||||
|
|
Loading…
Reference in a new issue