Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-24 17:15:45 -05:00
parent 186ea56cbb
commit 0b93b30d7f

View File

@@ -1851,13 +1851,13 @@ DOWNLIST(){
ditem=${ditem//.down}
host=${ditem%%-*}
item=${ditem#*-}
if [[ $ditem == *"-"* ]]; then item=${ditem#*-};
if [[ $ditem == *"-"* ]]; then item=${NM_SERVICES[${ditem#*-}]};
else item='HOST DOWN'; fi
c=0; spc=''
spc1=${cw}-${#item}
echo "HERE: $downitem ~ $ditem ~ $host ~ $item ~ $spc1"
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -e "${idsST[Bold]}${idsCL[Red]}${NM_SERVICES[${item}]}${spc}${host}${idsST[Reset]}${idsCL[Default]}"
echo -e "${idsST[Bold]}${idsCL[Red]}${item}${spc}${host}${idsST[Reset]}${idsCL[Default]}"
DIVIDER false darkGray
done
echo