Skip to content
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

Timestamp Exception with ACI Plugin #5

Open
ND056751 opened this issue Jan 22, 2021 · 2 comments
Open

Timestamp Exception with ACI Plugin #5

ND056751 opened this issue Jan 22, 2021 · 2 comments

Comments

@ND056751
Copy link

Hi @tcfite, I am working for Cerner. We had the ACI code integrated with OpenNMS and we are using it for a long time now.

Recently on eventd.log logs we have started getting below timestamp issue. I am not sure if the malformed timestamp is getting from the APIC or at the OpenNMS while processing the raw event. Do you have any idea on the below error?

ERROR [pool-38-thread-1] o.h.u.JDBCExceptionReporter: ERROR: timestamp out of range: "185151249-10-01 22:00:25.805-06 BC"

Also is this opennms-aci-plugin code ready for use? There was no release/tag available, not sure if it's launched already. Could you confirm on that and the branch to be used

Thank you!

@tcfite
Copy link
Contributor

tcfite commented Jan 22, 2021

I developed the ACI / OpenNMS integration while working there at Cerner. The code running at Cerner is not the same as what is in this project. That code only exists in a Cerner owned fork of the opennms project.

As for the error, this code merely receives Faults from the APIC controller, parses them, and converts them into ONMS events. It's hard to tell from that error message exactly where this is occurring, but I would suspect this is date string coming from the APIC controller that is in a format that the code isn't expecting. These events are json objects and the java code attempts to convert the date string into a java.util.Date object. If the date string is formatted differently than it is coded for, it may not be creating a valid Date object.

This opennms-aci-plugin project was created during a OpenNMS DevJam 2 years ago and probably still needs more work before it would be production ready. Again, this is different than the code you are running there at Cerner.

@ND056751
Copy link
Author

ND056751 commented Jan 27, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants