Power through power outages


Article from Issue 80/2007

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.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Perl: Nagios Plugins

    You can build a plugin in Perl to harness the power of the Nagios monitoring tool.

  • Nagios Traffic Light

    A clever combination of Nagios and a doityourself traffic lights lets you know how your network is feeling.

  • Nagios Workshop

    Nagios monitors your network and provides early warning for problems with hosts and services.

  • NagAconda: Python Instead of Perl for Nagios Plugins

    The NagAconda Python tool helps when writing plugins for the Nagios monitoring tool and is available in its first open release.

  • Programming Snapshot – Power Outages

    A power failure can cause the IQ of a smart home to plummet suddenly. An emergency power supply and a script on the SmartThings platform can prevent a total outage and inform the owner. The polyglot Perlmeister embarks on a foray into the territory of the Groovy scripting language in this issue.

comments powered by Disqus

Direct Download

Read full article as PDF:

Perl_Uninterruptible_Power_Supply.pdf  (253.39 kB)


njobs Europe
Njobs Netherlands Njobs Deutschland Njobs United Kingdom Njobs Italia Njobs France Njobs Espana Njobs Poland
Njobs Austria Njobs Denmark Njobs Belgium Njobs Czech Republic Njobs Mexico Njobs India Njobs Colombia