Skip to content

saturn99/gatus-proxy-checkhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatus proxy

It sends the link received from gatus the host to the check-host.net and sends the permanent link to the Telegram account.

env

build:

manual:

docker build -t gatus-proxy-checkhost:v2 .

pre compile:

export TELEGRAM_TOKEN=xxx
export TELEGRAM_CHAT=xxx
./gatus-proxy-checkhost

docker:

pull:

docker pull ghcr.io/saturn99/gatus-proxy-checkhost:v2

run:

docker run --rm \
    -p 8080:8080 \
    --env-file .env \
    ghcr.io/saturn99/gatus-proxy-checkhost:v2

OR

docker run --rm \
	-p 8080:8080 \
	-e TELEGRAM_TOKEN="" \
	-e TELEGRAM_CHAT= \
	-e TELEGRAM_BASE="https://api.telegram.org"  \
	ghcr.io/saturn99/gatus-proxy-checkhost:v2

compose:

IP=0.0.0.0 docker compose up

Request:

curl -X POST \
  http://localhost:8080/webhook \
  -d '{
	"name":"https://www.yahoo.com/",
	"status":"check"
	}'

use in gatus:

add alerting with custom

alerting:
  custom:
    url: "http://127.0.0.1:8080/webhook"
    method: "POST"
    body: |
      {
        "status": "[ALERT_TRIGGERED_OR_RESOLVED]",
        "name": "[ENDPOINT_URL]"
      }
    placeholders:
      ALERT_TRIGGERED_OR_RESOLVED:
        TRIGGERED: "check"
        RESOLVED: "OK"
  • sure use placeholders with maped TRIGGERED to check

then use it to configs:

endpoints:
  - name: test
    url: https://test.test/
    alerts:
      - type: custom
        failure-threshold: 1
        send-on-resolved: true

if host is down, app send check-host permanent link to your telegram

About

gatus (https://github.com/TwiN/gatus) proxy for use if host is DOWN, check it and send perminate link to telgram

Topics

Resources

Stars

Watchers

Forks

Packages