Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

JasperReport: Is it possible to use XPATH request

0 votes
I have configured my OpenNMS to collect classics indicators on multiple servers (CPU, Memory...).

Based on these collects, I would like to try to create charts like Pie Chart based one indicator but with the information coming from multiple servers.

I have done some research but it seems that is not possible with rrd request used in Jasper Report. The major reason is that we could not mix in one request the list of equipments (from postgre sql database)  and their counter (from rrd). To get the list of Equipment for one indicator, two way:

- we should go through a sql request but after that, the indicators from the rrd data collected in jasper report are treated separatly by equipment. It does not seem possible to merge the result from all the equipment in one graph.

- Or we should define in the rrd request the list of rrd source (i.e. the list of equipments path) but in my case I didn't want to use fixed number of server for my request as I will add soon additionnal server in the collect.

To solve this issue, I was thinking using an xml export of rrd data using information that I have found on OpenNMS wiki: http://www.opennms.org/wiki/Data_Export

Based on this xml request, I wanted to use ireport xpath functionnality to extract my data to create my chart but I don't know where to defined the url path to use is xpath in OpenNMS

Is it possible to use xpath report in OpenNMS? If yes, Where can I defined the path to http request?
OpenNMS version
asked Apr 1, 2015 by Sylvestre (380 points)
edited Apr 1, 2015 by Sylvestre

1 Answer

0 votes
I don't know much about the Data_Export feature. I am not even sure, if it works. The new way of doing something like this would be the Measurements API. See http://docs.opennms.org/opennms/releases/latest/guide-development/guide-development.html#_measurements_api for more information.
answered Nov 15, 2017 by mvrueden (240 points)