[Nut-upsuser] nut with Belkin "Active Battery Backup" UPS (BU30 series)
Cian Davis
davisc at skynet.ie
Sun Feb 17 21:17:01 UTC 2008
Alexander I. Gordeev wrote on 17/02/08 19:14:
> Well, we always need feedback about the development version so don't put
> him off testing :
Right, well after actually *reading* the clear direction on the website
that was repeated in the reply to my e-mail, I got the trunk version
compiled.
The megatec_usb driver works (output below). The stable code didn't
work, by the way. However, when I start upsdrvctl, it seems to start and
says it's detected a Megatec USB UPS. However, a upsc belkin at localhost
says Connection failure. It doesn't look like the monitor is starting.
I've included the relevant sections of my ups.conf, upsd.conf,
upsd.users and upsmon.conf
root at tom:/usr/local/nut/bin# ./megatec_usb -DDD -a belkin
Network UPS Tools 2.3.0-1306 - Megatec protocol driver 1.5.12 [megatec_usb]
Carlos Rodrigues (c) 2003-2008
Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]
Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007
debug level is '3'
Checking device (0000/0000) (004/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (003/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (002/002)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor
- Product: USB to Serial
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
Starting UPS detection process...
Asking for UPS status [Q1]...
get_data_phoenix: got so far [(228.9 2]
get_data_phoenix: got so far [(228.9 228.9 228]
get_data_phoenix: got so far [(228.9 228.9 228.9 043 4]
get_data_phoenix: got so far [(228.9 228.9 228.9 043 49.9 13.6]
get_data_phoenix: got so far [(228.9 228.9 228.9 043 49.9 13.6 25.0 00]
0]t_data_phoenix: got so far [(228.9 228.9 228.9 043 49.9 13.6 25.0 00001001
Q1 => OK [(228.9 228.9 228.9 043 49.9 13.6 25.0 00001001]
Asking for UPS status [Q1]...
et_data_phoenix: got so far [(228.4 2]
get_data_phoenix: got so far [(228.4 228.4 228]
get_data_phoenix: got so far [(228.4 228.4 228.4 043 4]
get_data_phoenix: got so far [(228.4 228.4 228.4 043 49.9 13.6]
get_data_phoenix: got so far [(228.4 228.4 228.4 043 49.9 13.6 25.0 00]
0]t_data_phoenix: got so far [(228.4 228.4 228.4 043 49.9 13.6 25.0 00001001
Q1 => OK [(228.4 228.4 228.4 043 49.9 13.6 25.0 00001001]
Calculated battery charge: 97.5%
ups.conf
[belkin]
driver = megatec_usbLISTEN 127.0.0.1 3493
port = auto
desc = "Belkin UPS"
upsd.conf
LISTEN 127.0.0.1 3493
upsd.users
[admin]
password = password
actions = SET
instcmds = ALL
upsmon.conf
RUN_AS_USER nut
MONITOR belkin at localhost 1 admin Pow3rm3 master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
More information about the Nut-upsuser
mailing list