Discussion:
[Apcupsd-users] apcupsd not working properly on Ubuntu 16.04 LTS-based 4.4 kernel
nls
2017-05-04 14:02:21 UTC
Permalink
Hi,

I was using the daemon succesfully previously on an earlier Proxmox version
that used the RH/OpenVZ kernel 2.6.32. I've recenty upgraded to their newer
version which uses an Ubuntu 16.04 LTS kernel branch, 4.4.59-87, closely
following upstream. On these new kernels I get this kind of output:

APC : 001,028,0645
DATE : 2017-05-04 15:42:17 +0200
HOSTNAME : x
VERSION : 3.14.12 (29 March 2014) debian
UPSNAME : x
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2017-05-04 15:42:15 +0200
MODEL :
STATUS : ONLINE
LOADPCT : 0.0 Percent
BCHARGE : 0.0 Percent
TIMELEFT : 0.0 Minutes
MBATTCHG : 40 Percent
MINTIMEL : 3 Minutes
MAXTIME : 900 Seconds
OUTPUTV : 0.0 Volts
DWAKE : 0 Seconds
LOTRANS : 0.0 Volts
HITRANS : 0.0 Volts
ALARMDEL : 30 Seconds
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
STATFLAG : 0x05000008
SERIALNO :
END APC : 2017-05-04 15:42:18 +0200

Many of the status values are not recognised. It makes the daemon with this
model practically unusable. I'd happily provide more info if needed to
debug this.

Thanks,
Chris
nls
2017-05-04 14:05:25 UTC
Permalink
I forgot to spec the UPS device model.

# dmesg | grep 'usb 1-1.6'
[14570.971851] usb 1-1.6: new low-speed USB device number 8 using ehci-pci
[14572.927443] usb 1-1.6: New USB device found, idVendor=0463,
idProduct=ffff
[14572.927449] usb 1-1.6: New USB device strings: Mfr=1, Product=2,
SerialNumber=4
[14572.927452] usb 1-1.6: Product: Ellipse ECO
[14572.927454] usb 1-1.6: Manufacturer: EATON
[14572.927456] usb 1-1.6: SerialNumber: 000000000
Post by nls
Hi,
I was using the daemon succesfully previously on an earlier Proxmox
version that used the RH/OpenVZ kernel 2.6.32. I've recenty upgraded to
their newer version which uses an Ubuntu 16.04 LTS kernel branch,
4.4.59-87, closely following upstream. On these new kernels I get this kind
APC : 001,028,0645
DATE : 2017-05-04 15:42:17 +0200
HOSTNAME : x
VERSION : 3.14.12 (29 March 2014) debian
UPSNAME : x
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2017-05-04 15:42:15 +0200
STATUS : ONLINE
LOADPCT : 0.0 Percent
BCHARGE : 0.0 Percent
TIMELEFT : 0.0 Minutes
MBATTCHG : 40 Percent
MINTIMEL : 3 Minutes
MAXTIME : 900 Seconds
OUTPUTV : 0.0 Volts
DWAKE : 0 Seconds
LOTRANS : 0.0 Volts
HITRANS : 0.0 Volts
ALARMDEL : 30 Seconds
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
STATFLAG : 0x05000008
END APC : 2017-05-04 15:42:18 +0200
Many of the status values are not recognised. It makes the daemon with
this model practically unusable. I'd happily provide more info if needed to
debug this.
Thanks,
Chris
Jernej Simončič
2017-05-06 12:13:49 UTC
Permalink
Post by nls
[14572.927454] usb 1-1.6: Manufacturer: EATON
This is likely the reason - apcupsd is intended for APC UPSes, not
other brands.
--
< Jernej Simončič ><><><><>< http://eternallybored.org/ >

A Smith and Wesson beats four aces.
-- Canada Bill Jones's Supplement
Loading...