Engineering Notes · agent operations · home lab
My workstation kept dying mid-afternoon, always during my nap. My agent proved it was the grid. The power company did not argue, they just had no record of most of it. Their replies came from an address that bounces. So I started keeping my own record, and now they are putting monitoring on my line.
Ok, so confession first. I have an afternoon nap. (I work for myself, nobody can stop me.)
A few times now, I came back from that nap to a workstation that had quietly rebooted itself. No crash and no shutdown. The logs just stop. 45 seconds later it was booting again.
I asked my agent why. It read the journal and my own hardware metrics log. CPU at 39°C, 22 GB of RAM free, the 12 V rail steady. Healthy, then gone. That is a power signature, not a software one.
I told it the machine is on a UPS. Its answer: no UPS software is installed, which is not the same as no UPS. Fair. The UPS had no data cable, so the PC could not see it. (It also did not do its one job.)
Then the evidence stacked up:
So, not my PC. The grid. And the grid apparently knows my nap schedule. Mid-afternoon, every time. I took it personally.
Here is the funny bit. If the UPS had done its job, I would have slept straight through every one of these. No reboot, no clue, no blog post. The broken UPS is the only reason I know any of this.
The network operator publishes a live outage feed behind its outage map. The agent pulled the feed for the whole network, not a lookup for my street. Then it worked out the distances on my machine. My address never left the box.
Three unplanned faults about 2 km away, starting 6 minutes after my blip. My blip itself was not on the map. The map only shows outages that last. A line that trips and reconnects in seconds never shows up there.
The agent drafted an enquiry in my voice. The dates and times, the incident IDs from their own map, and three plain questions. It filled in the web form and stopped before Submit. I read it, then sent it.
Then the power dropped again. Same afternoon. (I was awake for this one. It took my agent session down with it.)
(Side casualty: my 4 TB data disk did not mount after that first reboot. Its boot-time check got killed halfway through recovering the journal. No disk errors. One e2fsck and it was back.)
The acknowledgement came within minutes, from a noreply address. Fair enough, it is automated.
The real answer came an hour later. Also from noreply. (It landed in my trash folder. Even my mail server did not trust it.) It confirmed my property was hit by a feeder trip, cause unknown. Good. I am not imagining it.
They did not argue. For the other November dates they simply had no record. (Off while I am asleep is still off, it just does not show up anywhere.)
So I replied, to add the second drop that day. It bounced. A mail flow rule blocks the noreply address, and the bounce says to use the contact form.
This is the part that gets me. The context sits in my inbox. The form has a 2,000 character limit and no thread. Every follow-up starts from zero, with a reference number in the first line and a hope that the next person reads back.
I sent the follow-up through the form anyway. And I added a line about the noreply address.
A reply nobody can reply to is not support. It is a notice. If you answer a customer's question, let them answer you back.
"We have no record of it" is fine. I will keep one.
The UPS got its USB data cable. It shows up as a generic USB-to-serial chip (0665:5161, which a lot of cheap units share). Network UPS Tools reads it with the nutdrv_qx driver:
ups.status OL # on line (mains)
input.voltage 241.6
battery.voltage 27.5 # 24 V pack
ups.load 11
It is set up as monitoring only. No automatic shutdown, no NUT users, so nothing can send the UPS a command. A small logger starts at boot. It writes every switch to battery, every return to mains, the seconds spent on battery, the input voltage and any USB gaps. Append-only, timestamped to the second.
The honest limit: it polls about once a second. A very short dip can still fall between polls. It shows a pattern. It is not a calibrated recorder.
I had an old Kindle Paperwhite sitting in a drawer for years. Now it has the most important job in the house: watching the power while I nap.
E-ink is perfect for this. It is readable from across the room, it does not glow at night, and it only uses power when the picture changes.
The agent jailbroke it (it is my hardware) and set up a small kiosk script that starts at boot instead of the Kindle home screen. Every 10 seconds it pulls a rendered image from a small Python server on the workstation, over Wi-Fi. If nothing changed, the screen is left alone.
(It took some back and forth to get here. A wrong port, a Wi-Fi network the Kindle would not join, and a first version that was just a wall of text. The usual.)
The follow-up through the form worked. In their latest reply the power company agreed to install monitoring equipment on my line.
I am more than happy to have it. Something on that line is not right, and things like this cause fires. I would much rather they find it now, on their equipment, than read about it later.
Next is a controlled unplug test on the UPS, now that I can watch it live. It has a new battery and it still dropped the load, so it owes me an answer too. (I will do that one awake.)
Their map only shows what lasts. If you need proof of short outages, log them yourself. A UPS with a data cable and a few lines of Python will do it.
The monitor and the kiosk script are private. These are the tools they use.
nutdrv_qx for this kind of unitI use my tooling predominantly on Mage-OS (Adobe Commerce / Magento) e-commerce projects, and my own AI Booking Agent. If you have not swapped to Mage-OS yet, you are falling behind ;)