From a567d569b7fdadfb963bc95f1ccccb554cc5183a Mon Sep 17 00:00:00 2001 From: Maria Haider Date: Fri, 11 Nov 2022 19:37:23 +0100 Subject: [PATCH] Changing the script --- global/overlay/usr/lib/nagios/plugins/check_eidastest_qa.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/global/overlay/usr/lib/nagios/plugins/check_eidastest_qa.sh b/global/overlay/usr/lib/nagios/plugins/check_eidastest_qa.sh index 5c0a865b..6e75dba9 100755 --- a/global/overlay/usr/lib/nagios/plugins/check_eidastest_qa.sh +++ b/global/overlay/usr/lib/nagios/plugins/check_eidastest_qa.sh @@ -1,5 +1,7 @@ #!/bin/bash +. /usr/lib/nagios/plugins/utils.sh + exec_status=$(curl -s https://api.swedenconnect.se/testid/qa/execution-status | jq --raw-output .) exec_status_result=$? @@ -56,8 +58,8 @@ done if [ "$exit_status" -gt 0 ] then echo "$output" + exit $STATE_CRITICAL else echo "Tests on test lands are error free" + exit $STATE_OK fi - -exit 0