aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-02-26 13:15:58 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-02-26 13:15:58 +0100
commit8c94e0c82ce4e2c0c2b250e73e4a845074402091 (patch)
tree2f9081b9ec1d93409db193061f7a1a0d6fda5a65
parent1967ce2058e8b5772d4388098acf7f5780ac8429 (diff)
downloadmonitoring_custom-8c94e0c82ce4e2c0c2b250e73e4a845074402091.tar.gz
fix check_mem for usage <1%
-rwxr-xr-xplugins/check_mem2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_mem b/plugins/check_mem
index 09b4ba8..1762662 100755
--- a/plugins/check_mem
+++ b/plugins/check_mem
@@ -34,7 +34,7 @@ done <<< $(free | tail -n -2)
PERCENT_USED=$(echo "scale=4; $USED / $TOTAL * 100 " | bc -l)
PERCENT_USED=${PERCENT_USED%00}
-PERCENT_USED_INT=${PERCENT_USED%.*}
+PERCENT_USED_INT=0${PERCENT_USED%.*}
if [ $PERCENT_USED_INT -ge $CRIT ]; then
RET=2