Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-24 16:53:02 -05:00
parent 3e6d5add2b
commit 9f5a673e5b

View File

@@ -1844,16 +1844,16 @@ DOWNLIST(){
echo -e "Down_Item Host Down_Since"
DIVIDER false yellow
cw=30
cw=40
# for downitem in $(</tmp/downlist); do
for downitem in `find /opt/idssys/nodemgmt -name "*.down"`; do
downitem=${downitem##*/}
host=${downitem##*-}
item=`echo ${downitem} | sed 's|.*/||'`
ditem=${downitem##*/}
host=${ditem##*-}
item=`echo ${ditem} | sed 's|.*/||'`
c=0; spc=''
spc1=${cw}-${#item}
echo "HERE: $downitem - $spc1"
echo "HERE: $downitem ~ $ditem ~ $host ~ $item ~ $spc1"
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -e "${idsST[Bold]}${idsCL[Red]}${item}${spc}${host}${idsST[Reset]}${idsCL[Default]}"
DIVIDER false darkGray