Data Export

From OpenNMS
Jump to navigation Jump to search

Warning.png This feature is deprecated

The data export servlet feature is deprecated since OpenNMS Horizon 16 in favor of the Measurements ReST Service, and will be removed in a future release.

The Data Export feature that will export performance data stored in the "RRD" files to an XML file that can be used by other application (currently available if you are using JRobin or RRDtool (tested on 1.12.1) to store the data).

This feature is accessed by going to a particular URL (/opennms/summary/results.htm) and passing four parameters:

a filter rule This is any filter that normally works in OpenNMS, such as "ipaddr iplike *.*.*.*" (although I'd worry about using that one with a open attributeSieve)
(in seconds since epoch) i.e. this is in the value returned with "date +%s"
(in seconds since epoch) same format as startTime
a regexp that can be passed to String.match() to match the attribute name Thus ".*" would return all values from all RRDs for the nodes that match the filter above.


Here's an example using wget:

 wget --http-user=admin --http-passwd=admin \
  --auth-no-challenge -O summary.xml \

This will return the summary.xml file for all of the variables being collected for the node that contains Here's one for ifInOctets and ifOutOctets for the whole system:

 wget --http-user=admin --http-passwd=admin \
  --auth-no-challenge -O summary.xml \

Time is in miliseconds. When copy&pasting the timestamps from a graph, remove the last 3 digits. Otherwise the values will be NaN.

To get a response in a webbrower:*
     <name>opennms-jvm (*)</name>

It isn't possible to use &start=end-24h&end=now like with graphs: Looking at the source code of org.opennms.web.controller.RrdSummaryController (especially org.opennms.web.svclayer.SummarySpecification), the controller expect a numeric value for start and end, so technically, that is not going to work.

Keywords: XML, RRD, export, integration, statistics, reporting