From ade6f5f228193bf0e75d4d54fcac0eab1b4d4da5 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Wed, 11 Jul 2018 20:26:20 +0200 Subject: [PATCH] Plugin multibandwidth: proper handling of invalid values --- plugins/network/multibandwidth | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/network/multibandwidth b/plugins/network/multibandwidth index 280c1406..4cbfefe0 100755 --- a/plugins/network/multibandwidth +++ b/plugins/network/multibandwidth @@ -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