mirror of https://github.com/apache/cloudstack.git
Improve logs on kvmvmactivity.sh (#4704)
Co-authored-by: Daniel Augusto Veronezi Salvador <daniel@scclouds.com.br>
This commit is contained in:
parent
cc2c6e91cb
commit
99f2919ef4
|
|
@ -93,7 +93,7 @@ fi
|
||||||
|
|
||||||
if [ -z "$UUIDList" ]
|
if [ -z "$UUIDList" ]
|
||||||
then
|
then
|
||||||
echo "=====> DEAD <======"
|
echo "=====> Considering host as DEAD due to empty UUIDList <======"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -107,7 +107,7 @@ if [ ! -f $acFile ]; then
|
||||||
if [[ $latestUpdateTime -gt $SuspectTime ]]; then
|
if [[ $latestUpdateTime -gt $SuspectTime ]]; then
|
||||||
echo "=====> ALIVE <====="
|
echo "=====> ALIVE <====="
|
||||||
else
|
else
|
||||||
echo "=====> DEAD <======"
|
echo "=====> Considering host as DEAD due to file [$acFile] does not exists and condition [latestUpdateTime -gt SuspectTime] has not been satisfied. <======"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
acTime=$(cat $acFile)
|
acTime=$(cat $acFile)
|
||||||
|
|
@ -121,13 +121,13 @@ else
|
||||||
if [[ $latestUpdateTime -gt $SuspectTime ]]; then
|
if [[ $latestUpdateTime -gt $SuspectTime ]]; then
|
||||||
echo "=====> ALIVE <====="
|
echo "=====> ALIVE <====="
|
||||||
else
|
else
|
||||||
echo "=====> DEAD <======"
|
echo "=====> Considering host as DEAD due to file [$acFile] exist, condition [suspectTimeDiff -lt 0] was satisfied and [latestUpdateTime -gt SuspectTime] has not been satisfied. <======"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ $latestUpdateTime -gt $lastUpdateTime ]]; then
|
if [[ $latestUpdateTime -gt $lastUpdateTime ]]; then
|
||||||
echo "=====> ALIVE <====="
|
echo "=====> ALIVE <====="
|
||||||
else
|
else
|
||||||
echo "=====> DEAD <======"
|
echo "=====> Considering host as DEAD due to file [$acFile] exist and conditions [suspectTimeDiff -lt 0] and [latestUpdateTime -gt SuspectTime] have not been satisfied. <======"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue