Power through power outages
An uninterruptible power supply can help get you through a short power outage without losing data or damaging hardware. A Nagios script written in Perl checks UPS health and initiates a controlled powerdown if the unit exhausts its battery capacity.
While going through my drawers full of old computer hardware, I found a cheap, old, uninterruptible power supply (UPS). I must have bought it because it was on sale, since the “Cyberpower 325SL” only provides 185 watts for about five minutes. But I figured that’s good enough for helping a desktop PC, a DSL modem, and a router go through a short power outage unharmed.