fix the monitoring
This commit is contained in:
@@ -35,18 +35,20 @@ for part in "${parts[@]}"; do
|
|||||||
if $include; then
|
if $include; then
|
||||||
result=$($BASEPATH/sync-status.sh "${part%.yml}")
|
result=$($BASEPATH/sync-status.sh "${part%.yml}")
|
||||||
|
|
||||||
if [[ "$result" == *"syncing"* && $? -eq 1 ]]; then
|
if [ $? -ne 0 ]; then
|
||||||
# Allow exit status 1 if result contains "syncing"
|
if [[ "$result" == *"syncing"* ]]; then
|
||||||
#echo "hit syncing"
|
# Allow exit status 1 if result contains "syncing"
|
||||||
elif [[ "$result" == *"lagging"* && $? -eq 1 ]]; then
|
true
|
||||||
# Allow exit status 1 if result contains "syncing"
|
elif [[ "$result" == *"lagging"* ]]; then
|
||||||
#echo "hit lagging"
|
# Allow exit status 1 if result contains "syncing"
|
||||||
elif [ $? -ne 0 ]; then
|
true
|
||||||
echo "hit failure $?"
|
else
|
||||||
any_failure=true
|
any_failure=true
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "${part%.yml}: $result"
|
echo "${part%.yml}: $result"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user