From b01637a4de4af01518c8041392baace8370efa7f Mon Sep 17 00:00:00 2001 From: Cyberes Date: Thu, 23 Nov 2023 21:45:39 -0700 Subject: [PATCH] check_curl: also show status code --- check_curl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_curl.sh b/check_curl.sh index c0c7137..da0529a 100755 --- a/check_curl.sh +++ b/check_curl.sh @@ -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