Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1854,8 +1854,8 @@ DOWNLIST(){
|
||||
if [[ $ditem == *"-"* ]]; then item=${NM_SERVICES[${ditem#*-}]};
|
||||
else item='HOST DOWN'; fi
|
||||
|
||||
toterrtime=`date +%s`-$(stat -c %Y ${FOLDER}/${ditem}.errtime)
|
||||
errtime=$(SHOW_TIME ${toterrtime})
|
||||
echo "HERE: ${FOLDER}/${ditem}.errtime"
|
||||
#toterrtime=`date +%s`-$(stat -c %Y ${FOLDER}/${ditem}.errtime)
|
||||
|
||||
c=0; spc=''
|
||||
spc1=${cw}-${#item}
|
||||
@@ -1864,7 +1864,7 @@ DOWNLIST(){
|
||||
c=0; spc2=''
|
||||
spc1=${cw2}-${spc1}
|
||||
until [ $c = ${spc1} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
|
||||
echo -e "${idsST[Bold]}${idsCL[Red]}${item}${spc}${host}${spc2}${errtime}${idsST[Reset]}${idsCL[Default]}"
|
||||
echo -e "${idsST[Bold]}${idsCL[Red]}${item}${spc}${host}${spc2}$(SHOW_TIME ${toterrtime})${idsST[Reset]}${idsCL[Default]}"
|
||||
DIVIDER false darkGray
|
||||
done
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user