Update nodemgmt-scripts.sh
This commit is contained in:
@@ -378,6 +378,7 @@ STATUS(){
|
||||
else
|
||||
rm -Rf ${FOLDER}/test.repl
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
echo
|
||||
echo -e "${idsCL[LightCyan]}Will verify folder replication this status check ... ${idsCL[Default]}"
|
||||
CHECKFOLDERSYNC=true
|
||||
fi
|
||||
@@ -565,6 +566,12 @@ STATUS(){
|
||||
partitions3=(${partitions2})
|
||||
for partition in "${partitions3[@]}"; do
|
||||
if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
c=0; cw=40; spc=''
|
||||
spc1=${cw}-${#pname}
|
||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -en " ${pname}$spc: "
|
||||
fi
|
||||
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
|
||||
@@ -582,13 +589,7 @@ STATUS(){
|
||||
fs_status_color='Green'
|
||||
|
||||
fi
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
c=0; cw=40; spc=''
|
||||
spc1=${cw}-${#pname}
|
||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -en " ${pname}$spc: "
|
||||
echo -e "${idsCL[${fs_status_color}]}${freespace} MB${idsCL[Default]}"
|
||||
fi
|
||||
[ "${ST_ACTION}" != "check" ] && echo -e "${idsCL[${fs_status_color}]}${freespace} MB${idsCL[Default]}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user