A power outage took two hosts down for two days
Two of my three lab machines lost power on May 11 and I found out two days later. Every monitor I had was running on the machines that went dark.
Two of the three machines in my home lab lost power on the afternoon of May 11. I found out on the evening of May 13, about two days later. Nothing alerted me. Every monitor I had was running on the hardware that had gone dark. That is my design and my problem, and as of this week it is only partly fixed.
What happened
I described the lab in April. It is three mini PCs: one serves local language models, one runs a hypervisor and most of what I depend on, and the third is older and smaller. At 4:48 p.m. on May 11, the first two lost power.
The hypervisor host carries the containers behind my personal assistant, my workflow automation, a set of small tool servers and my Git server. All of it stopped at once.
I noticed at about 10 p.m. on May 13, when the assistant did not respond in the chat app I use to talk to it.
Recovery was the easy part. Every guest on that host is set to start at boot, and once the machines had power again, everything came back without my help. One detail is worth knowing if you run the same kind of setup. The hypervisor starts its guests one after another, so if you check status right after boot, some of them still show as stopped. Give it time before you decide something is broken.
Afterward I read the system journal from the previous boot to see whether the host had crashed. The last entry was at 4:48:20 p.m. There was no kernel panic before it, no thermal event and no out-of-memory kill. The log just ends. From the inside, that is what a power cut looks like.
Where my monitors lived
The part that bothered me was the two days of not knowing. So I listed every piece of monitoring I had and wrote down where each one runs.
- A health monitor checks the assistant's services. It runs in the same container as the assistant.
- Alert workflows in my workflow tool send me messages when jobs fail. The workflow tool runs on the same host.
- The third machine watches its own containers. It has no view of the other two machines.
- Nothing scheduled on my laptop looks at the lab.
- I had no outside uptime service of any kind.
- The lab is connected by Tailscale, a mesh VPN. Its webhooks cover events such as a device being added, a device key expiring and a policy change. The documented list has no event for a device going offline. I checked on the night I found the outage.
Every item on that list either died with the host or was never looking at it. I had put the smoke detector on the same circuit as the stove.
This is easy to do without noticing, because each monitor made sense when I added it. The health monitor belongs next to the services it checks. The alert workflows belong in the workflow tool. Each decision was local and reasonable, and no single one of them was responsible for the case where the whole host is gone.
- Two hosts lose powerMay 11 at 4:48 p.m. The system journal just ends, with no crash first.
- Monitors stop with the hostsThe health monitor and the alert workflows ran on the same host.
- No alert reaches meNothing outside the two hosts was watching them.
- I find out two days laterMay 13 at about 10 p.m., when the assistant did not respond in chat.
The fix is a job on the host that calls an outside service every five minutes. I have not set it up yet.
Checking from outside when nothing is reachable
The usual outside monitor polls a public address and alerts when it stops answering. That does not fit my lab. The machines have no public address, and I am not going to open one so that a monitoring service can reach in.
So the direction has to reverse. The lab calls out on a schedule, and something outside the house notices when the calls stop.
Healthchecks.io is one service built for this. Its documentation describes it as working "as a dead man's switch for processes that need to run continuously or on a regular, known schedule." You create a check and get a URL that belongs to it. A scheduled job on your machine makes an HTTP request to that URL. In the documentation's words, the service "raises an alert as soon as a ping does not arrive on time." The alert goes out from their infrastructure to your phone or inbox.
For my lab, that means a scheduled job on the hypervisor host that makes one outbound request every five minutes. If the host loses power, hangs or loses its network, the requests stop and I hear about it within minutes.
Be clear about what this covers. It tells you the machine is alive and can reach the internet. It will also fire when your home internet drops, which I count as correct, because from where I am sitting the lab is just as unreachable. It tells you nothing about whether a particular service on the machine is working. The inside monitors still do that job. You need both layers, and they answer different questions.
What I have done so far
I have not set up the outside check. I looked at it on May 13, decided it could wait, and it is still waiting. It remains the right fix.
This week I found a second gap while working on something else. I have a dashboard that shows heartbeats from components in the lab, and I had assumed it would show me a failure like this one. A small sidecar pushes the heartbeat data out to it. That sidecar had been pushing empty payloads, for how long I do not know, because the source it read from was a database that no longer answered. Each empty push was accepted with a 200, so nothing looked wrong at either end.
I rewrote the sidecar to read from a source that exists. The dashboard now receives 54 heartbeats, and it marks any component that has been silent for more than five minutes as down.
That is an improvement, and it has the original flaw. The sidecar runs in the lab. If the lab loses power again, the dashboard will go quiet and nothing will tell me that quiet is the problem.
The same question at work
This scales up directly. In an enterprise the watcher and the watched share more than people expect. The alerts go out through a mail relay on the infrastructure being monitored. The on-call tool signs in through the identity provider that is down.
One caveat. An outside check adds a dependency on a third party and on your internet link, so it will sometimes alert when your systems are fine. I would take that trade for anything I care about.
The test costs nothing to run. Write down every alert you rely on. Next to each one, write where it runs and what it needs in order to reach you. Then cross out everything that would be dead if the whole site lost power. Whoever owns monitoring owns whatever is left on that page. In my case the page was blank.
Views are my own.