check_curl

This commit is contained in:
Cyberes 2023-04-21 23:54:19 -06:00
parent 5b9ececd11
commit 0cb66ef0b3
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ 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_CODE=0
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)."
OUTPUT_CODE=1