Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-08 22:40:15 -06:00
parent 6ad8ac6a74
commit 95d56ab287

View File

@@ -719,14 +719,14 @@ DOWNLIST(){
echo -e "${idsCL[LightGreen]}Current List of Items Down...${idsCL[Default]}"
DIVIDER false yellow 95
if [ "${1}" != "ignore" ]; then
echo -e "${idsCL[Yellow]}Service/Host Host Down_Time${idsCL[Default]}"
echo -e "${idsCL[Yellow]}Service/Host Host Down_Time${idsCL[Default]}"
else
echo -e "${idsCL[Yellow]} Service/Host Host Down_Time Notifications${idsCL[Default]}"
echo -e "${idsCL[Yellow]} Service/Host Host Down_Time Notifications${idsCL[Default]}"
fi
DIVIDER false yellow 95
until [ "${choice^^}" = "D" ]; do
cw=30; cw2=65; is=1;
cw=40; cw2=30; is=1;
for downitem in ${DOWNLIST[@]}; do
ditem=${downitem##*/}
ditem=${ditem//.down}
@@ -753,7 +753,7 @@ DOWNLIST(){
c=0; spc=''; spc1=${cw}-${#itemname}
#echo "HERE: $downitem ~ $ditem ~ $host ~ $item ~ $itemname ~ $spc1"
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
c=0; spc2=''; spc1=${cw2}-${#itemname}-${#host}-${spc1}
c=0; spc2=''; spc1=${cw2}-${#itemname}
until [ $c = ${spc1} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
if [ "${1}" != "ignore" ]; then