Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-08 21:09:05 -06:00
parent 6dd6ea5009
commit ef9ec3a9bb

View File

@@ -715,7 +715,7 @@ DOWNLIST(){
else else
echo -e "${idsCL[LightGreen]}Current List of Items Down...${idsCL[Default]}" echo -e "${idsCL[LightGreen]}Current List of Items Down...${idsCL[Default]}"
DIVIDER false yellow 95 DIVIDER false yellow 95
[ "${1}" == "ignore" ] && ignsel=" " || ignsel="" [ "${1}" == "ignore" ] && ignsel=" " || ignsel=""
echo -e "${idsCL[Yellow]}${ignsel}Service/Host Host Down_Time${idsCL[Default]}" echo -e "${idsCL[Yellow]}${ignsel}Service/Host Host Down_Time${idsCL[Default]}"
DIVIDER false yellow 95 DIVIDER false yellow 95
@@ -726,7 +726,7 @@ DOWNLIST(){
host=${ditem%%~*} host=${ditem%%~*}
item=${ditem#*~} item=${ditem#*~}
if [ "${1}" == "ignore" ]; then if [ "${1}" == "ignore" ]; then
[ ${is} -lt 10 ] && ignsel=" ${is})" || ignsel="${is})" [ ${is} -lt 10 ] && ignsel=" ${is})" || ignsel="${is}) "
else else
ignsel="" ignsel=""
fi fi
@@ -755,8 +755,9 @@ DOWNLIST(){
c=0; spc2='' c=0; spc2=''
spc1=${cw2}-${#itemname}-${#host}-${spc1} spc1=${cw2}-${#itemname}-${#host}-${spc1}
until [ $c = ${spc1} ]; do spc2="${spc2} "; c=`expr $c + 1`; done until [ $c = ${spc1} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
echo -e "${ignsel}${idsST[Bold]}${idsCL[Red]}${itemname}${spc}${host}${spc2}$(SHOW_TIME ${toterrtime})${idsST[Reset]}${idsCL[Default]}" echo -e "${idsCL[Red]}${ignsel}${idsST[Bold]}${itemname}${spc}${host}${spc2}$(SHOW_TIME ${toterrtime})${idsST[Reset]}${idsCL[Default]}"
DIVIDER false darkGray 90 DIVIDER false darkGray 90
((is++))
done done
fi fi
echo echo