Quieting an alert storm on my home server
About 200 phone alerts in one week came down to four causes. I found them, fixed them, and made the alerts worth reading again.
Private system, not public
Problem
I run a small home server (a Raspberry Pi) that hosts my dashboards, tools and site checks, and it sends alerts to my phone. In one week it sent 124 "back to normal" messages and 50 "services down" messages, plus more for single services, mostly within minutes of each other. When alerts flap like that, people stop reading them, and the real one gets missed.
What I did
I treated the flood as one incident, not 200. I lined up the alert times against the system logs, the memory watchdog's kill log, my load-shedding script's status file and each service's restart count. I set up the monitoring, the load-shedding rules and the phone alerts myself.
What the data showed
- The memory watchdog's kill line sat above my load-shedder's floor, so the watchdog always fired first. It killed small services that came back 15 seconds later: 1,811 kills in one day that freed nothing.
- A "keep everything running" script restarted the services the load-shedder had paused on purpose, 105 to 368 times a day, with an alert each time.
- One service had a memory cap smaller than its own cache, so it was killed about every 45 seconds.
- A menu bar app on my laptop had grown to 910 MB, which caused the laptop memory alerts.
Result
I raised the load-shedder's floor from 450 to 650 MB. Within two minutes, free memory went from 490 to 780 MB and watchdog kills fell from 290 per 30 minutes to 1 per 10 minutes. The keep-alive script now skips what the load-shedder is holding. Alerts now need three failed checks in a row (15 minutes), a service that flaps twice in six hours sends one note instead of many, and a new "out of memory" alert names the biggest processes. The laptop app went from 910 MB to 70 MB.
The same idea runs my VPN recovery: I wrote the steps down once and made them automatic, so a person is paged only when automation has run out of moves.
Skills shown
VPN recovery ladder
Minutes the tunnel has been down, and what happens on its own

