For one of our project we use OpenNMS version 14.0.3 and have added the following functionality (it's already developed and system tested):
Collect of CSV file: • The CSV collect handler is extending the XML handler (as done for JSON handler) • The XML configuration files are modified to configure the specificity of CSV collect (separator, column to collect, resource, timestamp, …) • To make up for lost XPATH possibilities, the use of calculable expression is configurable to retrieve object values (it’s available for resource and timestamp values too)
For one of our project we use OpenNMS version 14.0.3 and have added the following functionality (it's already developed and system tested):
Collect of CSV file:
• The CSV collect handler is extending the XML handler (as done for JSON handler)
• The XML configuration files are modified to configure the specificity of CSV collect (separator, column to collect, resource, timestamp, …)
• To make up for lost XPATH possibilities, the use of calculable expression is configurable to retrieve object values (it’s available for resource and timestamp values too)
As asked, I've pushed the source code on Git:
https://github.com/Pierre-Schiltz/opennms/tree/Sharing-KPI-CSV
Regards,
PS: The OpenNMS Contributor Agreement (OCA) is in progress to be validated by my company. Once done I will send the Git pull request.