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

<OLD!!!!>

</OLD!!!>

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.

NEW WORLD ORDER, WIP

The cclub-hardware-configuration package will install the NUT packages required to monitor UPSes. However, monitoring is not automatically configured—this needs to be done manually, as the exact circumstances will depend on the particular machine.

Hosts that are directly connected to the UPS via USB/serial will run nut-server as well as nut-monitor. Hosts that are not connected this way will run nut-monitor only, and will learn of UPS status by connecting to the nut-server on a remote host.

Setting up the NUT Server (upsd)

1. Add the nut user to the dialout group. This is needed so that the UPS driver process can open the serial port device and to communicate with the UPS.

Setting up the NUT Monitor (upsmon)


CategoryServices CategoryClubServices