Skip to content

apcupsd cannot parse BATTDATE MM/DD/YYYY #6675

@toby11

Description

@toby11

Relevant telegraf.conf:

[[inputs.apcupsd]]
servers = ["tcp://127.0.0.1:3551"]
timeout = "5s"

System info:

Telegraf 1.12.4 / Proxmox 6 (Debian Buster)
apcupsd 3.14.14 (31 May 2016) debian

Steps to reproduce:

Using telegraf with apcupsd enabled

Expected behavior:

apcupsd stats to be correctly processed and no error messages

Actual behavior:

BATTDATE fails to be processed

Additional info:

[inputs.apcupsd] Error in plugin: can't parse time: "12/28/2013"

Here is my apcaccess output (apologies for formatting - not sure why the newlines are not being shown)

DATE : 2019-11-16 18:04:54 +0000 
HOSTNAME : pve 
VERSION : 3.14.14 (31 May 2016) debian
UPSNAME : APCUPS 
CABLE : Ethernet Link 
DRIVER : SNMP UPS Driver 
UPSMODE : Stand Alone 
STARTTIME: 2019-11-16 17:48:50 +0000 
MODEL : Smart-UPS 750
STATUS : ONLINE 
LINEV : 230.0 Volts 
LOADPCT : 44.0 Percent 
BCHARGE : 100.0 Percent 
TIMELEFT : 23.0 Minutes 
MBATTCHG : 5 Percent 
MINTIMEL : 3 Minutes 
MAXTIME : 0 Seconds 
MAXLINEV : 237.0 Volts 
MINLINEV : 230.0 Volts 
OUTPUTV : 230.0 Volts 
SENSE : High 
DWAKE : 1000 Seconds 
DSHUTD : 20 Seconds 
DLOWBATT : 2 Minutes 
LOTRANS : 207.0 Volts 
HITRANS : 253.0 Volts 
ITEMP : 21.0 C 
ALARMDEL : 30 Seconds 
BATTV : 27.0 Volts 
LINEFREQ : 50.0 Hz 
LASTXFER : Line voltage notch or spike 
NUMXFERS : 0 
TONBATT : 0 Seconds 
CUMONBATT: 0 Seconds 
XOFFBATT : N/A 
SELFTEST : OK 
STESTI : OFF 
STATFLAG : 0x05000008 
MANDATE : 12/28/2013 
SERIALNO : AS1352131956 
BATTDATE : 12/28/2013 
NOMOUTV : 230 Volts 
FIRMWARE : UPS 08.8 (ID18) 
END APC : 2019-11-16 18:04:58 +0000

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions