-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apcupsd cannot parse BATTDATE MM/DD/YYYY #6675
Comments
I have raised this against the upstream issue as well mdlayher/apcupsd#6 |
BTW, you can use triple backticks for the multiline code formatting:
|
I am also running into this issue. In researching it I found there has been a commit that might solve this issue: Looks like this commit was added since the last time the library has been updated. Are you able to update the library again to see if this resolves the issue? |
I am experiencing the same issue. From what I can gather it appears that the previous update may have fixed this issue when the string is mm/dd/yy, but the issue remains with the 4 digit year (mm/dd/yyyy). Here is the BATTDATE string from the output of apcaccess status: Unfortunately, I am not very familiar with GO otherwise I would attempt to resolve and contribute. Perhaps if the BATTDATE issue is not quickly resolved, we could have an updated config that would allow for selection of fields to monitor for, allowing us the option to not monitor BATTDATE. That, or if the plugin would fail gracefully like others and just not record the one field instead of erring out completely. Appreciate everyone that contributes to this project and do hope the issue is resolved soon. |
Apparently updating the dependency and testing against the latest |
Relevant telegraf.conf:
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)
The text was updated successfully, but these errors were encountered: