check_curl: also show status code

This commit is contained in:
Cyberes 2023-11-23 21:45:39 -07:00
parent 30b2f8b3e3
commit b01637a4de
1 changed files with 1 additions and 1 deletions

View File

@ -421,5 +421,5 @@ if [ -n "$CRIT_STRING" ]; then
fi
# All checks passed
echo "OK - response time was $RESPONSE_TIME seconds${BODY_CONTAINS}-> $URL | $perfdata"
echo "OK - response time was $RESPONSE_TIME seconds. Returned code $HTTP_CODE.${BODY_CONTAINS}-> $URL | $perfdata"
exit 0