From 92e9006a45f96371de394e988b0d6b668f5074b9 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 21 Apr 2023 23:54:19 -0600 Subject: [PATCH] check_curl --- check_curl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_curl b/check_curl index ec591fe..cc31b5f 100755 --- a/check_curl +++ b/check_curl @@ -87,7 +87,7 @@ OUTPUT_MSG="" OUTPUT_CODE=0 if [ $RESPONSE_CODE -eq 200 ] && [ "$(echo "$RESPONSE_TIME < $CRITICAL_LEVEL" | bc -l)" -eq 1 ]; then - OUTPUT_MSG="OK: ${RESPONSE_TIME}s - $URL." + OUTPUT_MSG="OK: ${RESPONSE_TIME}s - $URL" OUTPUT_CODE=0 elif [ $RESPONSE_CODE -eq 200 ] && [ "$(echo "$RESPONSE_TIME < $WARNING_LEVEL" | bc -l)" -eq 1 ]; then OUTPUT_MSG="WARNING: response time is slow ($RESPONSE_TIME seconds)." @@ -122,8 +122,8 @@ case $OUTPUT_CODE in 2) echo "CRITICAL: $URL" ;; -*) - echo "CRITICAL: $URL" +3) + echo "UNKNOWN: $URL" ;; esac