Changing the script

This commit is contained in:
Maria Haider 2022-11-11 19:37:23 +01:00
parent b0031a7f4d
commit a567d569b7
Signed by: mariah
GPG key ID: 7414A760CA747E57

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/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=$(curl -s https://api.swedenconnect.se/testid/qa/execution-status | jq --raw-output .)
exec_status_result=$? exec_status_result=$?
@ -56,8 +58,8 @@ done
if [ "$exit_status" -gt 0 ] if [ "$exit_status" -gt 0 ]
then then
echo "$output" echo "$output"
exit $STATE_CRITICAL
else else
echo "Tests on test lands are error free" echo "Tests on test lands are error free"
exit $STATE_OK
fi fi
exit 0