From 7876c574162e5d18e2323f3f97749436b07c48aa Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 12 Dec 2019 23:52:46 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5eaba02b..3037a23d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -385,12 +385,12 @@ STATUS(){ for partition in "${partitions3[@]}"; do if [ "${partition}" != "udev" ]; then freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/M$//g'` - if [ "${freespace}" -le "10000" ]; then - fs_status='warn' - fs_status_color='Yellow' - elif [ "${freespace}" -le "1000" ]; then + if [ "${freespace}" -le "1000" ]; then fs_status='error' fs_status_color='Red' + elif [ "${freespace}" -le "10000" ]; then + fs_status='warn' + fs_status_color='Yellow' else fs_status_color='Green'