Network UPS Tools http://www.networkupstools.org/ {Also considered apcupsd (http://www.apcupsd.org/) - only APC, prefers to sit on top of NIS for multiple machines.} RH7.3 ----- Ensure NUT (0.45) from distro is installed. [Create user: groupadd -g 499 -r upsmonitor useradd -c "UPS monitoring user" -g upsmonitor -r -u 499 upsmonitor ] Fill out /etc/ups/* and /etc/sysconfig/ups. In /etc/rc.local amend serial port permissions to allow user access then restart ups (NUT) daemons. Modify swatch.conf. SLC 4 ----- Download nut-1.4.3.tar.gz, check and unpack. [Create user: groupadd -g 499 -r upsmonitor useradd -c "UPS monitoring user" -g upsmonitor -r -u 499 upsmonitor ] Compile: export CFLAGS="-march=athlon-xp" export CXXFLAGS="-march=athlon-xp" export F77FLAGS="-march=athlon-xp" ./configure --with-user=nut --with-port=3305 --sysconfdir=/etc/ups \ --with-cgi --with-drivers=apcsmart,newapc,genericups (newhidups fails to find some headers) make As root: make install mkdir /var/state/ups chmod 0700 /var/state/ups/ chown upsmonitor:upsmonitor /var/state/ups/ Don't do serial port permissions for now, as monitoring another machine. Create /etc/ups/upsmon.conf RUN_AS_USER upsmonitor MONITOR smrtpwr750@ide-raid01:3305 1 upsmon passwd slave and /usr/local/ups/sbin/upsmon Test by yanking out lead. Add swatch rule watchfor /upsmon\[/ echo yellow mail addresses=lcg-admin\@brunel.ac.uk,subject=".SW.lcfg-02 UPS Power Change" bell 3 Download nut-2.0.3.tar.gz, check and unpack. Create user: groupadd -g 499 -r upsmonitor useradd -c "UPS monitoring user" -g upsmonitor -r -u 499 upsmonitor Read doc/configure.txt: --with-port=PORT Change the TCP port used by the network code. Default is 3493. Ancient versions of upsd used port 3305. NUT 2.0 and up use a substantially different network protocol and are not able to communicate with anything older than the 1.4 series. If you have to monitor a mixed environment, use the last 1.4 version, as it contains compatibility code for both the old "REQ" and the new "GET" versions of the protocol. Doh!