We use NUT. We also try to run upsmon on the machines that are plugged into the UPS.

Configuration

The NUT configuration files live in /etc/nut.

Topology

NUT 2.0

Some aspects of configuration have changed in NUT 2.0 (ships with wheezy). Namely:

See what I did on IODINE. (Which I was going to use as the UPS monitor for graphite

Another thing to note, is that wheezy appears to install brltty for some reason or another. It is EVIL and disconnects FTDI devices thinking they're braille terminals. You need to remove the "brltty" package in order to use the serial converts we bought for UPS monitoring.

On gallium

In /etc/default/nut, specify START_UPSD=yes and START_UPSMON=yes.

Also one important thing to remember, is that you need a nut user. If you forget, you get the helpful error message "getpwnam(nut): Success" (at least in the sarge version).

nut:x:50:104::/var/lib/nut:/bin/false

On others

In /etc/default/nut, specify START_UPSMON=yes.

How It Handles Issues

TODO: kbare - verify this is true.

When the battery level of the UPS becomes critical, the upsmon processes will notice, and initiate a system shutdown. The master will wait for all of the slaves to shut down, and then it will shut itsefl down, and power off the UPS.


CategoryServices CategoryClubServices