Sandro Bordacchini
2017-06-23 09:31:24 UTC
Hello everyone.
I have a problem on my small server room, i hope someone here can help me
to figure out what's my problem.
I have a server rack powered by two SMT1500RMI2U, both upgraded to FW 09.3.
I purchased a bananapi platform and installed a debian stretch (armv7l
arch) to use the packaged apcupsd v.3.14.14 (31 May 2016).
After enabling modbus protocol on the UPSes, I connected them to the
bananapi platform with two usb cables.
I work out a systemd configuration to have two distinct apcupsd instances
(with different nisport) running.
Then integrated that on a zabbix agent (i can give you more details on it)
but basically i got apcaccess running once every minute for each apcupsd
instance.
All was working smoothly, but I soon realized that the readings were good
only for a short period (variable from tens of minutes to some hours), then
they get constant.
I need to restart apcupsd to have again actual readings.
I thought this was due the two instances of apcupsd running on the same
machine, so i removed one, disconnected one apcupsd, rebooted the device.
But the problem is still there. Maybe, but that could be only a
coincidence, the period was longer than before.
This https://ibb.co/bxy2DQ is the zabbix graph, you can see that readings
become constant just before 18:50.
And this is the apcaccess output:
***@banana:~# date && apcaccess -h localhost:3551
Fri Jun 23 10:33:49 CEST 2017
APC : 001,039,0910
DATE : 2017-06-22 18:48:54 +0200
HOSTNAME : banana
VERSION : 3.14.14 (31 May 2016) debian
UPSNAME : APCUPS
CABLE : USB Cable
DRIVER : MODBUS UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2017-06-22 14:06:35 +0200
MODEL : Smart-UPS 1500
STATUS : BOOST ONLINE
LINEV : 205.9 Volts
LOADPCT : 26.0 Percent
LOADAPNT : 23.4 Percent
BCHARGE : 100.0 Percent
TIMELEFT : 51.0 Minutes
MBATTCHG : -1 Percent
MINTIMEL : -1 Minutes
MAXTIME : 0 Seconds
OUTPUTV : 237.6 Volts
DWAKE : 0 Seconds
DSHUTD : 0 Seconds
ITEMP : 27.4 C
BATTV : 27.1 Volts
LINEFREQ : 50.0 Hz
OUTCURNT : 1.50 Amps
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : OK
STATFLAG : 0x0500000C
MANDATE : 2013-01-10
SERIALNO : AS1302223920
BATTDATE : 2016-12-15
NOMOUTV : 230 Volts
NOMPOWER : 1000 Watts
NOMAPNT : 1500 VA
FIRMWARE : UPS 09.3 / 00.4
END APC : 2017-06-23 10:33:49 +0200
You can see the DATE field is exactly the time where i stopped to have good
readings.
Here https://pastebin.com/Xf6bLiZF you can read the apcupsd configuration
file.
Can anyone help me with this?
Thanks a lot.
Sandro.
I have a problem on my small server room, i hope someone here can help me
to figure out what's my problem.
I have a server rack powered by two SMT1500RMI2U, both upgraded to FW 09.3.
I purchased a bananapi platform and installed a debian stretch (armv7l
arch) to use the packaged apcupsd v.3.14.14 (31 May 2016).
After enabling modbus protocol on the UPSes, I connected them to the
bananapi platform with two usb cables.
I work out a systemd configuration to have two distinct apcupsd instances
(with different nisport) running.
Then integrated that on a zabbix agent (i can give you more details on it)
but basically i got apcaccess running once every minute for each apcupsd
instance.
All was working smoothly, but I soon realized that the readings were good
only for a short period (variable from tens of minutes to some hours), then
they get constant.
I need to restart apcupsd to have again actual readings.
I thought this was due the two instances of apcupsd running on the same
machine, so i removed one, disconnected one apcupsd, rebooted the device.
But the problem is still there. Maybe, but that could be only a
coincidence, the period was longer than before.
This https://ibb.co/bxy2DQ is the zabbix graph, you can see that readings
become constant just before 18:50.
And this is the apcaccess output:
***@banana:~# date && apcaccess -h localhost:3551
Fri Jun 23 10:33:49 CEST 2017
APC : 001,039,0910
DATE : 2017-06-22 18:48:54 +0200
HOSTNAME : banana
VERSION : 3.14.14 (31 May 2016) debian
UPSNAME : APCUPS
CABLE : USB Cable
DRIVER : MODBUS UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2017-06-22 14:06:35 +0200
MODEL : Smart-UPS 1500
STATUS : BOOST ONLINE
LINEV : 205.9 Volts
LOADPCT : 26.0 Percent
LOADAPNT : 23.4 Percent
BCHARGE : 100.0 Percent
TIMELEFT : 51.0 Minutes
MBATTCHG : -1 Percent
MINTIMEL : -1 Minutes
MAXTIME : 0 Seconds
OUTPUTV : 237.6 Volts
DWAKE : 0 Seconds
DSHUTD : 0 Seconds
ITEMP : 27.4 C
BATTV : 27.1 Volts
LINEFREQ : 50.0 Hz
OUTCURNT : 1.50 Amps
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : OK
STATFLAG : 0x0500000C
MANDATE : 2013-01-10
SERIALNO : AS1302223920
BATTDATE : 2016-12-15
NOMOUTV : 230 Volts
NOMPOWER : 1000 Watts
NOMAPNT : 1500 VA
FIRMWARE : UPS 09.3 / 00.4
END APC : 2017-06-23 10:33:49 +0200
You can see the DATE field is exactly the time where i stopped to have good
readings.
Here https://pastebin.com/Xf6bLiZF you can read the apcupsd configuration
file.
Can anyone help me with this?
Thanks a lot.
Sandro.