-
Notifications
You must be signed in to change notification settings - Fork 22
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
MANDATE can be a different date format #6
Comments
Of course it can, ha. To clarify, does "03/06/09" mean March 6th, 2009? |
Exactly, M/D/Y. |
It's been a long time since I looked at this code, but it appears it doesn't parse MANDATE at all. Can you show the output of |
status examples for two various UPS:
in first UPS: in second: and i have dirty fix for BATDATE in my GH fork: maxxant@16f68f9 but for full coverage we needs fix all cases, which presents in apcupsd (that your can see in https://github.com/maxxant/apcupsd-status-examples) |
That's a super useful repo for me, thanks! Want to open a pull request for your change? I have a couple small nits but we can work them out. |
BATTDATE parsing should be fixed as of now, and we don't parse MANDATE at the moment. But now we can whenever needed. |
I have another example with a different format BATTDATE
full apcaccess output here
|
I am still having this issue where BATTDATE can't be parsed. APCUPSD output: Any suggestions? |
I don't use telegraf, please file an issue there. This problem is resolved here. |
Ok, will do. Thanks! |
Apparently MANDATE can also be in a 03/06/09 format in addition to the normal Y-M-D format.
Example in the documentation: http://www.apcupsd.org/manual/manual.html#apcupsd-network-monitoring-cgi-programs
The prometheus exporter fails on my system with this error:
parsing time "03/06/09" as "2006-01-02": cannot parse "6/09" as "2006"
with a MANDATE of 03/06/09.
The text was updated successfully, but these errors were encountered: