Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-24 17:25:41 -05:00
parent 127833f113
commit 3ac104d1df

View File

@@ -1854,7 +1854,11 @@ DOWNLIST(){
if [[ $ditem == *"-"* ]]; then item=${NM_SERVICES[${ditem#*-}]};
else item='HOST DOWN'; fi
toterrtime=`date +%s`-$(stat -c %Y ${FOLDER}/${ditem}.errtime)
if [ -f ${FOLDER}/${ditem}.errtime ]; then
toterrtime=`date +%s`-$(stat -c %Y ${FOLDER}/${ditem}.errtime)
else
toterrtime=`date +%s`-$(stat -c %Y ${FOLDER}/${ditem}.down)
fi
c=0; spc=''
spc1=${cw}-${#item}