Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user