diff --git a/tools/monitoring_check_all_once.sh b/tools/monitoring_check_all_once.sh new file mode 100755 index 0000000..88b39f4 --- /dev/null +++ b/tools/monitoring_check_all_once.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +cd -P "$(dirname "$(readlink -f "$0")" )" + +cd .. + +INFRA_ROOT="$PWD" + +RC=0 + +function fail_one() +{ + echo >&2 "FAILURE on: " "$@" + RC=$(( RC + 1 )) +} + +while IFS="" read -u 3 -r MONITOR_SCRIPT_PATH +do + "$MONITOR_SCRIPT_PATH" || { fail_one "$MONITOR_SCRIPT_PATH" ; } +done 3< <( find . -iname "monitor_check_once.sh" ) + +echo "Overall result: $RC" +exit "$RC"