Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-24 17:03:59 -05:00
parent c9e42e082c
commit d36a7e2223

View File

@@ -1844,12 +1844,12 @@ DOWNLIST(){
echo -e "Down_Item Host Down_Since"
DIVIDER false yellow
cw=40
cw=30
# for downitem in $(</tmp/downlist); do
for downitem in `find /opt/idssys/nodemgmt -name "*.down"`; do
ditem=${downitem##*/}
ditem=${ditem//.down}
host=${ditem##*-}
host=${ditem%%-*}
item=${ditem#*-}
c=0; spc=''