From 2f7e955b29451b8c8a18090f6b9772402fc818fe Mon Sep 17 00:00:00 2001 From: Aaron Johnon Date: Fri, 4 Aug 2023 03:03:06 -0500 Subject: [PATCH] added exception for 302 response codes to prevent false positives --- http_check_telegram | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http_check_telegram b/http_check_telegram index 2076b85..f92b51b 100755 --- a/http_check_telegram +++ b/http_check_telegram @@ -172,6 +172,10 @@ for site in $(read_checklist); do printf '%s\n' "[$(print_time)]: OK -- $site returns $respcode" db_dec $site ;; + 302) + printf '%s\n' "[$(print_time)]: WARNING -- $site returns $respcode" + db_dec $site + ;; 999) printf '%s\n' "[$(print_time)]: PROBLEM -- $site caused general cURL failure" >&2 db_inc $site