I recently purchased a Belkin 600VA UPS for my 12V fanless Mini ITX system and Wireless AP to keep them running through brown outs. This is what I had to do to get the UPS to work with NUT under Debian.
UPDATE Monday 21 May 09:49:17 CST 2012: now that I have had a long enough power outage I can confirm that the beeps do get faster towards end batter life and about then the computer starts its shutdown process.
Set the correct permissions to access the UPS
Edit and add the following to /lib/udev/rules.d/52-nut-usbups.rules:
# F6S600auUSB - blazer_usb ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="nut"
Run the following to activate the newly set permissions for the UPS:
# udevadm trigger --action=change
Installing and configuring NUT to work with the newly connected Belkin UPS
Install NUT:
# apt-get install nut
Edit /etc/nut/ups.conf and add the following to the end of file:
[belkin] driver = blazer_usb port = auto
Edit /etc/nut/nut.conf and change the mode:
MODE=standalone
Edit /etc/nut/upsd.users and add the following users
[admin] password = adm_pwd action = SET instcmds = ALL [upsmon] password = ups_pwd upsmon master
Edit the /etc/nut/upsmon.conf and check the following is active and correct.
MONITOR belkin@localhost 1 upsmon ups_pwd master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower NOTIFYFLAG ONLINE SYSLOG NOTIFYFLAG ONBATT SYSLOG NOTIFYFLAG LOWBATT SYSLOG NOTIFYFLAG FSD SYSLOG+WALL NOTIFYFLAG COMMOK SYSLOG NOTIFYFLAG COMMBAD SYSLOG NOTIFYFLAG SHUTDOWN SYSLOG+WALL NOTIFYFLAG REPLBATT SYSLOG+WALL NOTIFYFLAG NOCOMM SYSLOG NOTIFYFLAG NOPARENT SYSLOG RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5
Start NUT daemon:
# invoke-rc.d nut start
Check for errors in logs:
# tail -f /var/log/daemons.log # tail -f /var/log/messages
Check UPS status:
upsc belkin
Recent Comments