Monitor your ZFS pools effortlessly and receive near real-time alerts in Discord.
812
Monitor your ZFS pools effortlessly and receive near real-time alerts in Discord.
Create a compose.yaml file
An example compose.yaml file is included, make sure you replace the DISCORD_WEBHOOK_URL value with one you obtained from Discord:
services:
zfs-discord-alerts:
container_name: zfs-discord-alerts
image: ghcr.io/rycochet/zfs-discord-alerts:latest
restart: unless-stopped
environment:
DISCORD_WEBHOOK_URL: "https://discord.com/api/webhooks/..."
Start the Service
Use Docker Compose to start the service in the background:
docker-compose up -d
Trigger ZFS Events
Unplug a drive and plug it back in...
...Seriously, don't do this - it just works!
Check Discord
Notifications will appear in the designated Discord channel with details when something in the pools changes.
There will be an initial message when starting, even if it only says that everything is ONLINE (healthy).
Ensure Docker and Docker Compose are running correctly.
Verify that the Discord webhook URL is correct and active.
Check for any errors in the container logs:
docker logs zfs-discord-alerts
| Name | Definition | Default |
|---|---|---|
CHECK_DELAY | The number of seconds between checks. | 300 |
DISCORD_WEBHOOK_URL | Required The full webhook URL from Discord. | |
EXTRA | A string to send with every alert, perfect for sending @mentions for people. You need to obtain the ID and format as <@USER_ID> or <@&ROLE_ID>, but can put any text here. | |
LOG_LEVEL | How much to log: DEBUG, INFO, WARNING, ERROR, CRITICAL | INFO |
POOLS | A space separated list of pools to check, by default it will check everything. | |
SHOW_SPACE | Whether to show the space used, this will send an update to Discord when it changes at about 0.1 units (Gb / Tb / Pb etc). (True / False) | False |
VERBOSE | Provide more detail for the Discord messages. (True / False) | False |
Content type
Image
Digest
sha256:f2748c806…
Size
24.4 MB
Last updated
7 months ago
docker pull rycochet/zfs-discord-alerts