commands / demyx healthcheck
No results for ""
demyx healthcheck
Usage
demyx healthcheck app
demyx healthcheck disk
demyx healthcheck loadDescription
Runs health checks on app containers, disk usage, or system load. Normally executed automatically by the cron system every 5 minutes (app/load) or hourly (disk). Running manually produces no output if everything is healthy.
Notifications are sent via SMTP or Matrix webhook (if configured in demyx host edit).
Checks
| Command | Description |
|---|---|
demyx healthcheck app | Checks if all app containers (DB, Nginx, WordPress) are running. Shows Docker logs and log files for any failed container. |
demyx healthcheck disk | Checks disk usage with df. Sends notification if usage exceeds DEMYX_HEALTHCHECK_DISK_THRESHOLD. |
demyx healthcheck load | Checks 5-minute system load average. Sends notification if load exceeds DEMYX_HEALTHCHECK_LOAD. |
Examples
# Check all app containers
demyx healthcheck app
# Check disk usage
demyx healthcheck disk
# Check load average
demyx healthcheck loadEnabling Notifications
In demyx host edit, set:
DEMYX_HEALTHCHECK=true
DEMYX_SMTP=true
DEMYX_SMTP_TO=you@domain.tld
DEMYX_SMTP_FROM=demyx@domain.tldThen restart: demyx host restart
Related
demyx cron five-minute— runs app/load healthchecks automaticallydemyx cron hourly— runs disk healthcheck automatically- Developer: Custom Callbacks — send healthcheck alerts to Matrix, Slack, etc.