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
2:12, Wednesday, October 26, 2011Paulo Neves /
Finally!!
My Belkin 800va BU30800me USB is working.
Thank you!
23:14, Tuesday, November 15, 2011Sidney /
I got the UPS attached to a HP N36L running Ubuntu 11.4. Managed to connect to the UPS using your instructions and I can see the app responding to events like online or on battery. However, what don’t work for me is the auto shutdown. running the command UPSC does not show any info on battery level or capacity. Does auto shutdown work for you?
0:15, Wednesday, November 16, 2011Dale /
The last time I had a long power outage that depleted the UPS, and when I rebooted the system I did notice anything in the logs to indicate it was shutdown improperly. I should maybe test it and hook a monitor up to my 12 volt Mini ITX system and monitor to see that it does shutdown properly.
0:46, Wednesday, November 16, 2011Sidney /
@Dale
Thanks for the quick reply. One thing I noticed on my UPS (same model as yours) is that the audible beep doesn’t increase its frequency to 1 per sec prior to it losing all power altogether as stated on the user guide. i.e. it seems to be skipping the “low battery” state which might be the cause of my problem.
0:47, Wednesday, November 16, 2011Sidney /
oh, and do you mind posting your upsc output? mine is
battery.voltage: 13.40
battery.voltage.nominal: 12.0
beeper.status: enabled
device.type: ups
driver.name: blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.1
driver.version.internal: 0.03
input.current.nominal: 2.0
input.frequency: 50.1
input.frequency.nominal: 50
input.voltage: 252.3
input.voltage.fault: 252.3
input.voltage.nominal: 230
output.voltage: 245.6
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 0
ups.productid: 5161
ups.status: OL
ups.temperature: 25.0
ups.type: offline / line interactive
ups.vendorid: 0665
1:32, Wednesday, November 16, 2011Dale /
22:15, Saturday, April 28, 2012pablo escobar /
In a blackout, does the UPS shut down the OS properly? Is there a graphical interface to change the UPS settings, like with Windows?
0:16, Sunday, July 22, 2012Dale /
Yes it shut the OS down properly, I not have any GUI installed on the machine that the UPS is connected to.