Files
gourichon_org/tools/monitoring_check_all_once.sh
2024-03-24 17:16:19 +01:00

24 lines
374 B
Bash
Executable File

#!/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"