diff --git a/global/overlay/usr/lib/nagios/plugins/check_eidastest_prod.sh b/global/overlay/usr/lib/nagios/plugins/check_eidastest_prod.sh index 45cbeb3e..f4241350 100755 --- a/global/overlay/usr/lib/nagios/plugins/check_eidastest_prod.sh +++ b/global/overlay/usr/lib/nagios/plugins/check_eidastest_prod.sh @@ -38,6 +38,18 @@ if [ "$diff_exec_time" -gt "$day" ]; then fi +raw_not_executed_test=$(echo "$exec_status" | jq --raw-output '."last execution result".notExecutedTests[2]') + +declare -a not_executed_test=($(echo "$raw_not_executed_test" | tr "\n" " ")) + +#echo ${not_executed_test[*]} + +if [ "$not_executed_test" != null ] +then + echo "more than two lands not executed " + exit $STATE_CRITICAL +fi + raw_lands=$(echo "$exec_status" | jq --raw-output '."last execution result".failed[].result') raw_lands_result=$?