Skip to content

Input plugin apcupsd not serving any metrics #8521

@freaknils

Description

@freaknils

Hi,

i have installed a new APC UPS for my homeserver, after the last has broken a few weeks ago.
Since then I do not get any metrics served from apcupsd.

Relevant telegraf.conf:

[[inputs.apcupsd]]
  # A list of running apcupsd server to connect to.
  # If not provided will default to tcp://127.0.0.1:3551
  servers = ["tcp://127.0.0.1:3551"]

  ## Timeout for dialing server.
  timeout = "5s"

System info:

root@yggdrasil ~ # uname -a
Linux yggdrasil 5.9.12-arch1-1 #1 SMP PREEMPT Wed, 02 Dec 2020 16:14:56 +0000 x86_64 GNU/Linux
root@yggdrasil ~ # telegraf --version
Telegraf 1.16.3 (git: HEAD c7f21728)

Steps to reproduce:

Activate apcupsd with APC Smart UPS 1000.

Expected behavior:

Should output data from APC UPS, but no ups data is provided

apcaccess output is:

130 root@yggdrasil ~ # apcaccess
APC      : 001,051,1172
DATE     : 2020-12-07 18:21:33 +0100  
HOSTNAME : yggdrasil.cznetz.de
VERSION  : 3.14.14 (31 May 2016) unknown
UPSNAME  : aps-smartups-1000
CABLE    : Custom Cable Smart
DRIVER   : APC Smart UPS (any)
UPSMODE  : Stand Alone
STARTTIME: 2020-12-07 14:13:31 +0100  
MODEL    : SMART-UPS 1000
STATUS   : ONLINE 
LINEV    : 232.7 Volts
LOADPCT  : 5.2 Percent
BCHARGE  : 100.0 Percent
TIMELEFT : 75.0 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME  : 0 Seconds
MAXLINEV : 235.3 Volts
MINLINEV : 231.4 Volts
OUTPUTV  : 232.7 Volts
SENSE    : High
DWAKE    : 0 Seconds
DSHUTD   : 20 Seconds
DLOWBATT : 2 Minutes
LOTRANS  : 208.0 Volts
HITRANS  : 253.0 Volts
RETPCT   : 0.0 Percent
ITEMP    : 18.9 C
ALARMDEL : Low Battery
BATTV    : 27.6 Volts
LINEFREQ : 50.0 Hz
LASTXFER : Automatic or explicit self test
NUMXFERS : 0
TONBATT  : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : NO
STESTI   : 336
STATFLAG : 0x05000008
DIPSW    : 0x00
REG1     : 0x00
REG2     : 0x00
REG3     : 0x00
MANDATE  : 08/27/98
SERIALNO : GS9835306819
BATTDATE : 01/01/20
NOMOUTV  : 230 Volts
NOMBATTV : 24.0 Volts
EXTBATTS : 0
FIRMWARE : 60.11.I
END APC  : 2020-12-07 18:21:57 +0100 

Actual behavior:

Any other metric is provided fine but apcupsd. Output shows

Dez 07 18:09:40 <hostname> telegraf[704]: 2020-12-07T17:09:40Z E! [inputs.apcupsd] Error in plugin: time: invalid duration "LowBattery"

Already found this: https://community.influxdata.com/t/inputs-apcupsd-error-in-plugin-invalid-time-duration/16870/6

Metadata

Metadata

Assignees

Labels

bugunexpected problem or unintended behaviorupstreambug or issues that rely on dependency fixes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions