Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-01 18:49:05 -06:00
parent c642b64ca8
commit 27b25a4c1e

View File

@@ -559,8 +559,8 @@ STATUS(){
partitions3=(${partitions2})
for partition in "${partitions3[@]}"; do
if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then
pname=`echo "${partition}" | awk -F'/' ' { print $NF } ' >/dev/null 2>&1`
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/M$//g' >/dev/null 2>&1`
pname=`echo "${partition}" | awk -F'/' ' { print $NF } '` >/dev/null 2>&1
freespace=`${NCMD} df -hPBM ${partition} | 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'