Skip to content

Commit 99f2919

Browse files
GutoVeroneziDaniel Augusto Veronezi Salvador
andauthored
Improve logs on kvmvmactivity.sh (#4704)
Co-authored-by: Daniel Augusto Veronezi Salvador <daniel@scclouds.com.br>
1 parent cc2c6e9 commit 99f2919

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/vm/hypervisor/kvm/kvmvmactivity.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fi
9393

9494
if [ -z "$UUIDList" ]
9595
then
96-
echo "=====> DEAD <======"
96+
echo "=====> Considering host as DEAD due to empty UUIDList <======"
9797
exit 0
9898
fi
9999

@@ -107,7 +107,7 @@ if [ ! -f $acFile ]; then
107107
if [[ $latestUpdateTime -gt $SuspectTime ]]; then
108108
echo "=====> ALIVE <====="
109109
else
110-
echo "=====> DEAD <======"
110+
echo "=====> Considering host as DEAD due to file [$acFile] does not exists and condition [latestUpdateTime -gt SuspectTime] has not been satisfied. <======"
111111
fi
112112
else
113113
acTime=$(cat $acFile)
@@ -121,13 +121,13 @@ else
121121
if [[ $latestUpdateTime -gt $SuspectTime ]]; then
122122
echo "=====> ALIVE <====="
123123
else
124-
echo "=====> DEAD <======"
124+
echo "=====> Considering host as DEAD due to file [$acFile] exist, condition [suspectTimeDiff -lt 0] was satisfied and [latestUpdateTime -gt SuspectTime] has not been satisfied. <======"
125125
fi
126126
else
127127
if [[ $latestUpdateTime -gt $lastUpdateTime ]]; then
128128
echo "=====> ALIVE <====="
129129
else
130-
echo "=====> DEAD <======"
130+
echo "=====> Considering host as DEAD due to file [$acFile] exist and conditions [suspectTimeDiff -lt 0] and [latestUpdateTime -gt SuspectTime] have not been satisfied. <======"
131131
fi
132132
fi
133133
fi

0 commit comments

Comments
 (0)