Skip to content

Script to run HTTP healthchecks and send a notification if they fail

License

Notifications You must be signed in to change notification settings

csp33/http-healthcheck-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-healthcheck-notifier

Script to run HTTP healthchecks and send a notification if they fail

Usage

  1. Create a Telegram Bot and get its token.
  2. Start a chat with the bot and write /start
  3. Retrieve your user chat id by starting a conversation with https://t.me/chat_id_echo_bot
  4. Set the following env vars:
    export TELEGRAM_TOKEN="<your token>"
    export TELEGRAM_DESTINATION_CHAT_ID="<your destination chat ID>"
    export URL_TO_CHECK="<your URL to check>"
  5. Start the bot
    docker compose build
    docker compose up -d

Image is available at https://hub.docker.com/r/csp33/http-healthcheck-notifier

About

Script to run HTTP healthchecks and send a notification if they fail

Resources

License

Stars

Watchers

Forks

Packages

No packages published