Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-26 12:56:25 -05:00
parent 873e5ec092
commit aa8d28bbb5

View File

@@ -388,9 +388,8 @@ STATUS(){
DIVIDER; echo -e "${idsST[Reset]}"
fi
echo ${NODE_TYPES[@]}
for NTYPE in "${NODE_TYPES[@]}"; do
echo $NTYPE
#GOREPCHK=false;
#CHR=`date +"%H"`;
#if [ "${CHR}" -ge "12" ] && [ "${CHR}" -le "13" ] && [ "${NTYPE}" = "NC" ]; then
@@ -436,12 +435,15 @@ STATUS(){
for rcheck in "${!var2}"; do
echo $rcheck
if [ "${ST_ACTION}" != "check" ]; then
echo "yes1"
if [ "${ST_ACTION}" != "report" ]; then
echo "yes2"
c=0; cw=30; spc=''
spc1=${cw}-${#REPL_DESC[${rcheck}]}
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
else
echo "no2"
spc=' '
fi
echo -en " ${REPL_DESC[${rcheck}]}${spc}: "
@@ -455,6 +457,7 @@ STATUS(){
# fi
else
echo "no1"
timeout=`date --date='2 minutes' +%s`
fi
warn_timeout=`date --date='30 secs' +%s`