You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/vm/hypervisor/kvm/kvmvmactivity.sh
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ fi
93
93
94
94
if [ -z"$UUIDList" ]
95
95
then
96
-
echo"=====> DEAD <======"
96
+
echo"=====> Considering host as DEAD due to empty UUIDList <======"
97
97
exit 0
98
98
fi
99
99
@@ -107,7 +107,7 @@ if [ ! -f $acFile ]; then
107
107
if [[ $latestUpdateTime-gt$SuspectTime ]];then
108
108
echo"=====> ALIVE <====="
109
109
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. <======"
111
111
fi
112
112
else
113
113
acTime=$(cat $acFile)
@@ -121,13 +121,13 @@ else
121
121
if [[ $latestUpdateTime-gt$SuspectTime ]];then
122
122
echo"=====> ALIVE <====="
123
123
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. <======"
125
125
fi
126
126
else
127
127
if [[ $latestUpdateTime-gt$lastUpdateTime ]];then
128
128
echo"=====> ALIVE <====="
129
129
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. <======"
0 commit comments