mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-11-13 07:11:12 +01:00
Remove tabs from plugins
This commit is contained in:
parent
b5d8f7931b
commit
6b09d74c9a
1 changed files with 4 additions and 8 deletions
12
plugins/if_
12
plugins/if_
|
@ -16,14 +16,10 @@ config_if() {
|
|||
echo "up.min 0"
|
||||
echo "up.negative down"
|
||||
echo "up.cdef up,8,*"
|
||||
if [ -n "$(which ethtool)" ]; then
|
||||
if [ -x "$(which ethtool)" ]; then
|
||||
if ethtool "$INTERFACE" | grep -q Speed; then
|
||||
MAX=$(($(ethtool "$INTERFACE" | grep Speed | sed -e 's/[[:space:]]\{1,\}/ /g' -e 's/^ //' -e 's/M.*//' | cut -d " " -f 2) * 1000000))
|
||||
echo "up.max $MAX"
|
||||
echo "down.max $MAX"
|
||||
fi
|
||||
fi
|
||||
if [ -n "$(which ethtool)" ] && [ -x "$(which ethtool)" ] && ethtool "$INTERFACE" | grep -q Speed; then
|
||||
MAX=$(($(ethtool "$INTERFACE" | grep Speed | sed -e 's/[[:space:]]\{1,\}/ /g' -e 's/^ //' -e 's/M.*//' | cut -d " " -f 2) * 1000000))
|
||||
echo "up.max $MAX"
|
||||
echo "down.max $MAX"
|
||||
fi
|
||||
}
|
||||
fetch_if() {
|
||||
|
|
Loading…
Reference in a new issue