Built dead‑man's‑switch host monitoring
Built dead‑man's‑switch monitoring that pings only while memory and disk are healthy, so a degraded host raises an alert by going silent — and caught six variable names saying "free" where the check correctly measured "available", an order of magnitude apart on a 464 MB box.
Work carried out: September 2026
a host that raises the alarm by going quiet
Situation. Two important failure risks for a 464 MB host running a forge and a web server are memory exhaustion and a full disk. Monitoring can expose warning signs, although the timing depends on the workload and the conditions observed.
Task. The host needed an alarm that works when the host does not — which rules out anything that has to send a message at the moment of failure.
Action. The answer is a dead‑man’s switch on a timer. Every fifteen minutes with jitter, a small script measures available memory and free disk and pings an external service only if both are above their thresholds. Silence is the alert. A machine that has run out of memory, lost its network or stopped booting produces exactly the same signal as one that is unhealthy, which is the correct behaviour and the reason this shape was chosen over an agent that reports a status. The measurement is available memory, not free memory, and that distinction turned into the most instructive part of the work: the script had been reading the right column all along while six variable names around it said “free”. On a healthy Linux box free memory is near zero because the kernel uses idle memory for cache, so a reader checking those names against a ten per cent threshold would see twelve megabytes free on a 464 MB machine, conclude the check was broken, and fix it with a one‑character change that converts a working alarm into one that breaches permanently and gets muted inside a week.
Result. The host gained an alarm that fires when the expected signal is absent, and the misleading names were corrected. A received signal confirms that the script ran and its available‑memory and free‑disk thresholds passed; it does not certify general host health or that the site is serving.

Photo: u_ieeicob7xz / Pixabay 
Photo: domeckopol / Pixabay
Bring this experience to your project
Use “Built dead‑man's‑switch host monitoring” as a starting point for a similar challenge in your organisation. The services behind this work are available for your project. The whole setup written down as files, so it can be recreated exactly and never lives only in one person's head.
Look behind the result
Read the situation, decisions and result in this example. We can discuss which parts transfer to your constraints and which need another approach. Built dead‑man's‑switch host monitoring — a host that raises the alarm by going quiet
Look back at Backup automation with an explicit restore method. Read next: Cut systemd sandbox exposure on every unit. Or take a look at the full Portfolio.
One piece of a longer record — and it is all on this site.
Every entry is written the same way: the situation, the task, what we did and what changed.

