2
0
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:
Lars Kruse 2018-07-11 20:26:20 +02:00
parent 49aecf4e0e
commit ade6f5f228

View File

@ -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