Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user