Update nodemgmt-scripts.sh
This commit is contained in:
@@ -572,6 +572,7 @@ STATUS(){
|
||||
for partition in "${partitions3[@]}"; do
|
||||
if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then
|
||||
pname=`echo "${partition}" | awk -F'/' ' { print $NF } '` >/dev/null 2>&1
|
||||
pname=${pname#*vg-}
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
c=0; cw=40; spc=''
|
||||
spc1=${cw}-${#pname}
|
||||
@@ -579,7 +580,7 @@ STATUS(){
|
||||
echo -en " ${pname}$spc: "
|
||||
fi
|
||||
|
||||
[ "${partition}" == "/dev/root" ] && prt='/' || prt=${partition}
|
||||
[[ "${partition}" =~ *"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
|
||||
|
||||
Reference in New Issue
Block a user