Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
/ ayd-docker Public archive

The docker container image of Ayd status monitoring tool.

License

Notifications You must be signed in to change notification settings

macrat/ayd-docker

Repository files navigation

Ayd container image

The container image of Ayd alive monitoring tool. This image includes Ayd and plugins for SMB probe, email alert, and slack alert.

There is 3 variants of the base images.

  • latest, alpine: Balanced variant. This is tiny but you can use shell.
  • scratch: Minimal variant. You can use this if you won't use shell.
  • ubuntu: Large variant. You can use apt command for adding command that you want.

NOTICE

The container image has merged into Ayd repository. This repository is no longer maintained.

Usage

Simple usage

Below example is checking http://your-service.example.com every 10 minutes.

$ docker run -p 9000:9000 macrat/ayd 10m https://your-service.example.com

You can see status page on http://localhost:9000/

Please see Ayd project page for more information.

Persistence

This container write log to /var/log/ayd/ayd.log. This log is also works as database to restore state when restart.

$ docker run -p 9000:9000 -v ./ayd.log:/var/log/ayd/ayd.log macrat/ayd $YOUR_TARGETS

Send alert to e-mail

$ docker run -p 9000:9000 \
    -e "smtp_server=$YOUR_SMTP_SERVER" \
    -e "smtp_username=$YOUR_SMTP_USERNAME" \
    -e "smtp_password=$YOUR_SMTP_PASSWORD" \
    macrat/ayd -a mailto:your-email@example.com $YOUR_TARGETS

seealso: ayd-mailto-alert

Send alert to Slack

$ docker run -p 9000:9000 \
    -e "slack_webhook_url=$YOUR_SLACK_WEBHOOK_URL" \
    macrat/ayd -a slack: $YOUR_TARGETS

seealso: ayd-slack-alert