Sunday, May 15, 2016

Friday, April 10, 2015

Configure NUT for IPPON 400 UPS with USB interface in Ubuntu 14.04

I didn't like NUT. But to work with IPPON manufacture provide winpower tool:
  • it's java. I haven't got too much memory =)
  • monitor show error and doesn't start.
  • its installer broke you boot. It added mount usbfs to fstab, but usbfs has been deprecated for a long time already and you kernel build without it.
...and we need NUT. This is server tools, so configure it is a little painful =)

NUT has many parts:
  • driver - reads ups info from usb.
  • server - sends this info and events to client when they request it. Server has own user/pass list.
  • client - periodically reads info/events from server and does some actions. It needs login/pass for some action.
  • scheduler - script that help us with timer.
Because we have only one machine, all this parts will run on one computer. I need:
  • turn off beeper, because it my home server machine and I like sleep well.
  • turn server after ~90 sec on battery or less. Not when ups has low battery.
  • don't turn off ups after server. I need to supply ADSL modem and have WIFI as long as possible.
If you need something more - rtfm. All config files has its own comments, so I don't write many words.Usually edited config file and what we need write in it.
All things we did from root, so you first command:
$ sudo -s

# apt-get install nut