The Problem
A homelab produces a huge amount of state. Six nodes report temperatures and load. A backup server knows which guest it saved last night and which it missed. An uptime monitor knows what is down. Package managers know which security updates wait. Each of those answers lives in a different place, behind a different login, in a different format.
For a long time, my “monitoring” was me, with a lot of open tabs. I checked the backup server, then the uptime page. Then I used SSH on a node to look at temperatures. Each step was easy. Together, they were a chore. And a chore you must remember is a chore you will forget one day.
So I split the job in two. A collector goes and gets everything. Crawlers wander through what it found and react to it. Neither one is clever alone. Together, they make my lab watch itself.
The Collector: One Snapshot of Everything
The collector is a single long-running Python service on Din. Its whole job is to make one file, env.json, that describes the entire lab right now.
It has 24 sources. Each source is a small function that asks one thing one question:
- each Proxmox node: CPU, memory, disks, temperatures, every guest
- each cloud node: load, memory, disk, the services it runs
- the uptime monitor: what is down, since when, and why
- the backup server: the newest snapshot of every guest, store usage, the last verify and prune
- package updates: what waits, which ones are security fixes, which hosts need a reboot
- the AI node: whether the GPU is busy and what is loaded
- DNS filtering stats, the reverse proxy, my private mesh, mail and the media library
- speed tests, the network sentry, and a few more
The list is not the important part. The shape is: every source has its own interval and its own timeout.
| Source kind | Asked every | Gives up after |
|---|---|---|
| Node health | 30–60 s | 35–50 s |
| Uptime monitor, mesh, notifications | 2 min | 15–40 s |
| Backups, DNS, sign-in, network sentry | 5 min | 15–90 s |
| Speed test, media library | 15 min | 10–30 s |
| Package updates, reverse proxy | 30 min | 35–120 s |

The collector asks about fast-changing things often, and about slow, expensive things rarely. All sources run at the same time in a small thread pool. A slow answer from one never holds up the others.
The collector writes the output atomically. It writes the new file beside the old one and swaps it in one step, so nothing ever reads half a snapshot. It also keeps a 24-hour history of two-minute samples for small sparkline charts.
And it is careful about what it writes. It reads tokens from root-only files and never copies them into the output. It masks public addresses. The media server reports counts only. Many things read the snapshot, so it holds nothing worth stealing.
Who Reads the Snapshot
Here a collector earns its keep. Once one file describes the lab, everything else gets simple:
- My dashboard shows the observatory view: every node, service and backup. It adds plain-English hints when something needs attention.
- The e-ink reader on my desk draws a calm status panel from it every minute.
- Thermal alerts come straight from the collector. If a node stays warm or hot, I get one notification, not fifty.
- My AI node’s documentation job checks the GPU temperature in it before every request. It stops if things run hot.
- The crawlers read it every 15 minutes.
None of those consumers knows how to SSH into a node or log in to the backup server. They read one file. A new consumer tomorrow costs me a few lines.
The Crawlers: Navi and Link
Now for the fun part. The crawlers in my lab are characters: Navi, a fairy, and Link, her knight. They live in a small app I call LabQuest. Every 15 minutes, they take one step through a dungeon on their own. They explore rooms, fight monsters, find loot and go down floors.

My homelab is the dungeon. Every tick, they read env.json, and what happens in the lab becomes what happens in the dungeon:
- A service is down → a monster named after it appears at that node. Navi flies there to guard it.
- When I fix the real service, the monster weakens.
- Last night’s backups landed → the party is Fortified: more health and defence for the day.
- A backup fails → Cracked Aura: their defence drops.
- Security updates are waiting → Rusted Gear: their attacks get weaker until I patch.
- A node runs hot → Scorched. If it gets worse, Inferno.
- A failover drill passes → a Phoenix Blessing.
Link is the tank and takes most of the hits. Navi heals him mid-fight. I am the third member of the party, the engineer, and my real-world work feeds them. When I finish my daily sysadmin duties, I earn the lantern oil they need to go deeper. They can wander known floors for free. But every new floor costs oil, and there is a daily cap.

I made it a game for a reason. A dashboard tells me something is wrong. A fairy who is visibly worried, perched on the node with the dead service, makes me want to go fix it. Maintenance becomes something I check on because I care, not because I have to.
Do They Get Tired?
The crawlers do, on purpose. The collector does not, but its sources can.

The crawlers have stamina. Every tick in the dungeon costs 5 stamina (more if the lab runs hot). When stamina drops below 10, or health below about a third, Navi stops and rests at a fairy fountain. There she gets +15 stamina and +8% health per tick.
She goes back in at 70 stamina, with enough health for what is ahead (more if a boss waits). If they lose a fight badly, the party retreats to camp for two ticks and comes back at 60% health. There is no permadeath.
That rhythm is not decoration. The game moves at a believable pace, and a neglected lab is visibly harder on them. I never come back to a dead hero after a busy weekend.
The collector does not tire, but its sources do. Any source can be slow, time out or fail. When that happens, the collector does not panic and does not blank the dashboard. It marks that one source as failed and records when it went stale. It keeps the last good data along with its age. The dashboard can then say “backup data is 20 minutes old”, not “backups: unknown”.
Can They Break?
Absolutely. The design question is not how to stop them from breaking. It is what happens when they break. Here are the failure modes, and what catches each one.
A source hangs forever. Think of a stuck SSH session, or a server that accepts a connection and never answers. Each source has a timeout. If its thread is still busy 20 seconds past that, the collector marks it hung and reports it. Every other source keeps running.
The collector restarts. It saves its state every two minutes, so it comes back with the last good data. On startup, it staggers its first round: each source starts 0.4 s after the previous one. So twenty SSH sessions do not hit the fleet in the same second.
The snapshot itself goes stale. If the collector dies, env.json stops changing. The crawlers check its age. If it is older than 45 minutes, they treat the realm as “foggy”. They keep exploring, but no penalties come from stale data. The worst thing a monitoring bug could do is punish me for problems I fixed an hour ago.
The crawlers’ app goes down. When it comes back, it catches up on missed ticks, up to 48 of them (12 hours). Beyond that, the extra time collapses into one line: “Navi camped while the lab was away.” Only the current tick sees the real lab. The catch-up ticks do not replay old trouble into fresh penalties.

A tick runs twice. Each tick has a number (time divided into 15-minute slots). The app records it in the database with that number as a unique key, in the same transaction as the game state. The app cannot apply a tick a second time, even across restarts.
The AI goes quiet. A small local model on my AI node writes Navi’s lines and the chronicle. If that node is offline or busy, she falls back to written templates. The AI only chooses words, never outcomes. A seeded, deterministic engine decides combat, loot and buffs. So the game plays the same with or without the AI.
The database goes down. The app skips the tick and catches it up later. It never applies half a tick.
Look at the pattern: every failure has a boring, predictable outcome. Data gets older but keeps its label. A tick gets skipped, not duplicated. A voice goes generic, not silent. That makes small automation trustworthy.
How You Can Use This in Your Lab
You do not need a fairy to get most of the value. Here is the pattern, from smallest to silliest.
1. Start with a collector
Pick five things you check by hand today. Write one function per thing. Run them on a timer with their own timeouts, and write one JSON file. This is a minimal skeleton:
import concurrent.futures as cf, json, os, time
SOURCES = { # name -> (function, interval s, timeout s)
"disk": (check_disk, 60, 10),
"backups": (check_backups, 300, 60),
"uptime": (check_uptime, 120, 20),
}
state = {}
def run(name):
fn, _, timeout = SOURCES[name]
t0 = time.time()
try:
data = fn() # each fn enforces its own timeout
state[name] = {"ok": True, "updated": int(t0), "data": data}
except Exception as e:
old = state.get(name, {})
state[name] = {**old, "ok": False, "error": str(e)[:200],
"stale_since": old.get("stale_since") or int(t0)} # keep the last good data
def write():
tmp = "/var/www/status/env.json.tmp"
with open(tmp, "w") as f:
json.dump({"generated": int(time.time()), "sources": state}, f)
os.replace(tmp, "/var/www/status/env.json") # atomic swap
Four rules matter more than the code: one function per source, per-source timeouts, keep last good data with its age, and write atomically.
2. Point everything at the snapshot
Your dashboard reads it. A cron job that sends a notification reads it. A small e-ink screen or an old tablet reads it. Each consumer stays tiny, because it never talks to your infrastructure directly.
3. Add a crawler (it doesn’t have to be a game)

A crawler wakes on a schedule and reads the snapshot. It compares the snapshot with what it saw last time. Then it does one thing about the difference. Here are some ideas that are not games:
- a chore crawler that opens a to-do when a backup is older than a day. It closes the to-do when the next backup lands.
- a weekly digest crawler that writes a short summary of what went down, what got patched and what still waits
- a cleanup crawler that removes files nothing owns any more (I run one for my media folders)
- a drift crawler that notices when a service’s version changed and you did not change it
Steal the safety rules. Number your runs and make each one idempotent. Ignore stale input, and do not act on it. Cap how much a catch-up can do.
4. Or make it a game
Maybe you would rather feed a fairy than read a dashboard (I would). Then wrap the crawler in a story. Map signals to effects. Give the hero stamina, so the pace feels natural. Never let missing data punish the player. Pause only when a decision is truly needed, so it does not become one more thing that nags you.
Takeaways
- Split monitoring into a collector (go get everything, write one file) and crawlers (read that file, react to changes).
- Give every source its own interval and timeout, and run them concurrently.
- Never let one slow source block the rest.
- When a source fails, keep its last good data and say how old it is. “20 minutes old” beats “unknown”.
- Write the snapshot atomically. Keep secrets out of it, so anything can read it.
- Make crawlers idempotent (numbered runs, applied once). Cap their catch-up.
- Crawlers should ignore stale input. They should not punish you with it.
- Let AI choose words, never outcomes.
- Design for failure. Workers will break. The goal is that they break in boring, predictable, clearly labelled ways.
- And yes, they get tired. Let them rest. It makes the whole thing feel alive.