diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9ac821f1..4dc7c9ef 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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