From 5602c130ce0cb8fc89bf4d93376bbc4c8ce20634 Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Wed, 21 Jul 2021 07:11:23 -0500 Subject: [PATCH] Added custom header option --- example_configs/httpcheck_telegram | 1 + http_check_telegram | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example_configs/httpcheck_telegram b/example_configs/httpcheck_telegram index 28b5ff0..5ea3cfb 100644 --- a/example_configs/httpcheck_telegram +++ b/example_configs/httpcheck_telegram @@ -1,3 +1,4 @@ +HEADER="HTTP/S Checker" #Header for the start of outgoing messages from the bot CHATID="5555555" #Chat ID for the Telegram room/conversation with bot KEY="THISISAUNIQUEANDPRIVATEKEY" #Your bot's API key CHKLIST="${HOME}/.site_check" #A file containing a list of sites/URLs to check diff --git a/http_check_telegram b/http_check_telegram index 3743e16..dfc6a56 100755 --- a/http_check_telegram +++ b/http_check_telegram @@ -58,7 +58,7 @@ print_time() { } # Prepare message header -MSG='HTTP/S Problems Found:' +MSG="${HEADER}%0AProblems Found:" FAILURE=false # Check HTTP codes