Update nodemgmt-scripts.sh
This commit is contained in:
@@ -378,6 +378,7 @@ STATUS(){
|
|||||||
else
|
else
|
||||||
rm -Rf ${FOLDER}/test.repl
|
rm -Rf ${FOLDER}/test.repl
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
|
echo
|
||||||
echo -e "${idsCL[LightCyan]}Will verify folder replication this status check ... ${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Will verify folder replication this status check ... ${idsCL[Default]}"
|
||||||
CHECKFOLDERSYNC=true
|
CHECKFOLDERSYNC=true
|
||||||
fi
|
fi
|
||||||
@@ -565,6 +566,12 @@ STATUS(){
|
|||||||
partitions3=(${partitions2})
|
partitions3=(${partitions2})
|
||||||
for partition in "${partitions3[@]}"; do
|
for partition in "${partitions3[@]}"; do
|
||||||
if [ "${partition}" != "udev" ] && [ "${partition}" != "/dev/sda1" ]; then
|
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
|
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
|
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/M$//g'` >/dev/null 2>&1
|
||||||
if [ "${freespace}" -le "1000" ]; then
|
if [ "${freespace}" -le "1000" ]; then
|
||||||
@@ -582,13 +589,7 @@ STATUS(){
|
|||||||
fs_status_color='Green'
|
fs_status_color='Green'
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
[ "${ST_ACTION}" != "check" ] && echo -e "${idsCL[${fs_status_color}]}${freespace} MB${idsCL[Default]}"
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user