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