From 73a817a3c871d7d7aea38f4589fde022473582b2 Mon Sep 17 00:00:00 2001 From: anweshadas Date: Thu, 12 May 2022 13:56:39 +0200 Subject: Fixes the subject line of the error message --- scripts/monitor.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/monitor.sh b/scripts/monitor.sh index 3abb8dc..2d2722b 100755 --- a/scripts/monitor.sh +++ b/scripts/monitor.sh @@ -15,6 +15,7 @@ function safe_methods() { response=$(curl -s -w "%{http_code}" $url) http_code=$(tail -n1 <<< "$response") domain_name=$(echo $url | awk -F[/:] '{print $4}') + api=$url if [ $http_code != 200 ]; then msg="$(date +"%y-%m-%d %H:%M:%S %Z") Warning: $url is down. status_code $http_code" fail "$msg" -- cgit v1.2.3