mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Plugin multibandwidth: proper handling of invalid values
This commit is contained in:
parent
49aecf4e0e
commit
ade6f5f228
@ -109,6 +109,7 @@ for host in $hosts; do
|
||||
elif echo "$SPEED" | grep -q "G"; then
|
||||
RATE=$(echo "$SPEED" | awk '{ print int($1 * 1024 * 1024 * 1024); }')
|
||||
else
|
||||
RATE="U"
|
||||
echo "Error: no data (timeout)" >&2
|
||||
fi
|
||||
if [ "$RATE" -gt "$max_mbps" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user