Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-26 16:29:22 -05:00
parent a8bad42466
commit 5d71e4e1e2

View File

@@ -578,7 +578,10 @@ STATUS(){
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en " ${pname}$spc: "
fi
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/M$//g'` >/dev/null 2>&1
[ "${partition}" == "/dev/root" ] && prt='/' || prt=${partition}
freespace=`${NCMD} df -hPBM ${prt} | awk '{print $4}' |tail -1|sed 's/M$//g'` >/dev/null 2>&1
if [ "${freespace}" -le "1000" ]; then
fs_status='error'
fs_status_color='Red'