Update nodemgmt-scripts.sh

This commit is contained in:
2023-12-11 08:28:23 -06:00
parent c9cf485522
commit ceb1ac85b3

View File

@@ -633,14 +633,15 @@ DOWNLIST(){
fi fi
else else
[ "${1}" == "report" ] && dlen=90 || dlen=110
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 110 DIVIDER false yellow ${dlen}
if [ "${1}" == "report" ]; then if [ "${1}" == "report" ]; then
echo -e "${idsCL[Yellow]}[Type] [Host/Service/Docker Name] [Host] [Down_Time]${idsCL[Default]}" echo -e "${idsCL[Yellow]}[Type] [Host/Service/Docker Name] [Host] [Down_Time]${idsCL[Default]}"
else else
echo -e "${idsCL[Yellow]} [Type] [Host/Service/Docker Name] [Host] [Down_Time] [Notifications]${idsCL[Default]}" echo -e "${idsCL[Yellow]} [Type] [Host/Service/Docker Name] [Host] [Down_Time] [Notifications]${idsCL[Default]}"
fi fi
DIVIDER false yellow 110 DIVIDER false yellow ${dlen}
until [ "${choice^^}" = "E" ]; do until [ "${choice^^}" = "E" ]; do
cw=35; cw1=11; cw2=20; is=1; cw=35; cw1=11; cw2=20; is=1;
@@ -699,7 +700,7 @@ DOWNLIST(){
echo -e "\033[K${idsCL[LightRed]}${idsST[Bold]}${ignsel}${idsST[Reset]}${idsCL[LightRed]}${itemtype}${spca}${itemname}${spc}${host}${spc2}${time}${spc3}${dstatus}${idsCL[Default]}" echo -e "\033[K${idsCL[LightRed]}${idsST[Bold]}${ignsel}${idsST[Reset]}${idsCL[LightRed]}${itemtype}${spca}${itemname}${spc}${host}${spc2}${time}${spc3}${dstatus}${idsCL[Default]}"
fi fi
DIVIDER false darkGray 110 DIVIDER false darkGray ${dlen}
((is++)) ((is++))
done done