-
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
Neptune Apex plugin - unable to parse "none -0400" #5883
Comments
It seems like we should either ignore errors parsing the failed/restored time and possible log them as warnings (could be annoying if restored is always none). @MaxRenaud What do you think? |
Yes, this works. I'm surprised that this field can ever be "none" considering the device has power and serving an xml file. boozer2, |
If the error is persistent, and can't be cleared up by the user, then we shouldn't log. |
I power-cycled, and I see the "failed" time has updated, but the restored time still says "none". That is kind of strange... |
@danielnelson ACK for the logging |
Relevant telegraf.conf:
System info:
Telegraf 1.10.4
Ubuntu 18.04 Server
Steps to reproduce:
I haven't gotten this to work at all because of this parsing error. This appears to be because the plugin is expecting a date but the Apex is returning "none" for power restored time.
Expected behavior:
No errors, and data logged to InfluxDB
Actual behavior:
Error:
telegraf[9919]: 2019-05-21T00:33:50Z E! [inputs.neptune_apex]: Error in plugin: unable to parse "none -0400" (parsing time "none -0400": month out of range)
And nothing is added to my database from this input plugin.
Additional info:
Beginning of my Apex status.xml:
The text was updated successfully, but these errors were encountered: