Skip to content

jupegarnica/garn-monitoring

Repository files navigation

garn-monitoring

Get an email when your sites are down

install

deno install -Af --unstable -n monitor https://raw.githubusercontent.com/jupegarnica/garn-monitoring/master/app.ts

init configuration

monitor --init monitor.config.yaml

Usage

monitor --config monitor.config.yaml

once

Run only once:

monitor --config monitor.config.yaml --once

CI

Run it every hour with google actions. It takes aprox 744 min / month. (FREE 2000 min / month)

Go to https://github.com/:userName/:repoName/settings/secrets/actions to configure your smtp settings

# .github/workflows/run-monitor.yml
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
SMTP_USERNAME: ${{ secrets.SMTP_USERNAME }}
SMTP_FROM: ${{ secrets.SMTP_FROM }}
SMTP_TO: ${{ secrets.SMTP_TO }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}

Run in Docker

Watch docker-compose.yml

docker-compose up

About

get an email when your sites are down

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published