Homelab Pulse
A tiny daily health report for a self-hosted Docker server: one email, and only when something needs attention.
Homelab Pulse is a small, self-hosted health report for a single Docker server. Every morning it checks the things that tend to fail quietly and sends one short email with anything that needs attention, and nothing when all is well.
Why
Running a dozen services on one machine means a dozen ways for something to go wrong without anyone noticing: a container stuck in a restart loop, a disk slowly filling up, a backup that stopped running two weeks ago. Full monitoring stacks felt like overkill for one box, so I wanted something I could read in ten seconds over coffee.
What it checks
- Containers that are unhealthy, restarting or stopped
- Disk and memory usage against simple thresholds
- Age of the last successful backup snapshot
- TLS certificates that expire within 14 days
- Pending security updates for the host
How it works
A single Bash script runs from a systemd timer. Each check is a small function that prints a line only when something is wrong, so the report is empty on a good day:
check_containers() {
docker ps -a --format '{{.Names}} {{.Status}}' \
| grep -Ev 'Up [0-9]+ (minutes|hours|days)' \
| sed 's/^/container: /'
}If any check produces output, the lines are collected into a plain-text email and sent through the server's own mail relay.
What I learned
Boring, quiet tools are the ones you keep using. The hardest part wasn't writing the checks but deciding what not to alert on, so that the email still means something when it does arrive.