fix the monitoring
This commit is contained in:
@@ -37,10 +37,10 @@ for part in "${parts[@]}"; do
|
|||||||
|
|
||||||
if [[ "$result" == *"syncing"* && $? -eq 1 ]]; then
|
if [[ "$result" == *"syncing"* && $? -eq 1 ]]; then
|
||||||
# Allow exit status 1 if result contains "syncing"
|
# Allow exit status 1 if result contains "syncing"
|
||||||
echo "hit syncing"
|
#echo "hit syncing"
|
||||||
elif [[ "$result" == *"lagging"* && $? -eq 1 ]]; then
|
elif [[ "$result" == *"lagging"* && $? -eq 1 ]]; then
|
||||||
# Allow exit status 1 if result contains "syncing"
|
# Allow exit status 1 if result contains "syncing"
|
||||||
echo "hit lagging"
|
#echo "hit lagging"
|
||||||
elif [ $? -ne 0 ]; then
|
elif [ $? -ne 0 ]; then
|
||||||
echo "hit failure $?"
|
echo "hit failure $?"
|
||||||
any_failure=true
|
any_failure=true
|
||||||
|
|||||||
Reference in New Issue
Block a user