diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-02-26 13:15:58 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-02-26 13:15:58 +0100 |
commit | 8c94e0c82ce4e2c0c2b250e73e4a845074402091 (patch) | |
tree | 2f9081b9ec1d93409db193061f7a1a0d6fda5a65 | |
parent | 1967ce2058e8b5772d4388098acf7f5780ac8429 (diff) | |
download | monitoring_custom-8c94e0c82ce4e2c0c2b250e73e4a845074402091.tar.gz |
fix check_mem for usage <1%
-rwxr-xr-x | plugins/check_mem | 2 |
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 |