-
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 old BATTDATE #6394
Comments
Looks like we just need to update the library we are using, this issue has already been solved upstream: mdlayher/apcupsd#6 |
I apparently also have this issue using Telegraf 1.12.4 which should contain the fix (it was added in v1.12.2) I notice my date format is different again - MM/DD/YYYY
Here is the full apcaccess output
|
I have raised this against the upstream issue as well mdlayher/apcupsd#6 |
Thank you @toby11, could you open this as a new issue? |
@danielnelson new issue here, thanks |
Relevant telegraf.conf:
System info:
Telegraf docker latest on Ubuntu server 16.04 LTS
Steps to reproduce:
Connect to apcupsd with old serial UPS connected
Expected behavior:
Work correctly
Actual behavior:
Fails to work, cannot parse BATTDATE and terminates
Additional info:
In older APC UPS, BATTDATE is saved as MM/DD/YY and apcupsd does output it accordingly. The plugin apparently expects only YYYY-MM-DD format and fails.
Log
apcupsd output
The text was updated successfully, but these errors were encountered: