From b06b7db9fd7aae66934da802d9f09f4ad565f65e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 12 Feb 2023 13:00:36 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dsmon.sh b/dsmon.sh index 50ac8f4..3d812f3 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -217,6 +217,10 @@ CHECK(){ elif (( $(bc <<<"${DRIVEINFO_FREEPER[$DRIVE]} <= ${WARNING_LEVEL}") )); then fs_status='Warning' fs_status_color='Yellow' + + elif (( $(bc <<<"${DRIVEINFO_FREE[$DRIVE]} < 5") )); then + fs_status='Warning' + fs_status_color='Magenta' else fs_status='Normal' fs_status_color='Green'