Sign inSign up

sknr/go-ws-reachability

By sknr

•Updated 4 months ago

Checks regularly the reachability of configured websites and reports errors via Telegram

Image
0

409

sknr/go-ws-reachability repository overview

⁠Go website reachability checker

Performs scheduled HTTP HEAD request in order to check the reachability of the specified websites. Any occurring error will be reported via telegram message. Therefore, the app needs a valid Telegram bot token⁠, and a Telegram user id in order to function properly.

See GitHub repo at sknr/go-ws-reachability⁠.

⁠What the app does
  1. Load data/config.json.
  2. Start go routines for each individual website.
  3. Report via Telegram if an error (!= HTTP Status 200) occurred.
⁠Usage
⁠Example docker-compose.yml
version: '3.8'

services:
  app:
    image: sknr/go-ws-reachability:latest
#   Uncomment the next two lines in order to use your own config.json instead of the example one.
#    volumes:
#      - ./data:/app/data
    restart: unless-stopped
  • Start the container: docker compose up -d
  • Stop the container: docker compose down
⁠Example config.json
{
  "TelegramBotToken": "YOUR_TELEGRAM_BOT_TOKEN",
  "TelegramUserID": "YOUR_TELEGRAM_USER_ID",
  "ClientRequestTimeout": "5s",
  "Websites": [
    {
      "Name": "Google",
      "URL": "https://google.de",
      "Interval": "5m"
    },
    {
      "Name": "Yahoo",
      "URL": "https://yahoo.de",
      "Interval": "15m"
    }
  ]
}

Tag summary

Content type

Image

Digest

sha256:5f6eeb0e9…

Size

2.7 MB

Last updated

4 months ago

docker pull sknr/go-ws-reachability