From OpenNMS
There is a new 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 only available if you are using JRobin to store the data).
This feature is accessed by going to a particular URL (/opennms/summary/results.htm) and passing four parameters:
- filterRule
- 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)
- startTime
- (in seconds since epoch) i.e. this is in the value returned with "date +%s"
- endTime
- (in seconds since epoch) same format as startTime
- attributeSieve
- 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.
Examples
Here's an example using wget:
wget --http-user=admin --http-passwd=admin -O summary.xml \ 'http://172.16.8.100:8180/opennms/summary/results.htm?filterRule=ipaddr+iplike+10.136.123.1&startTime=1184173183&endTime=1185219010&attributeSieve=.*'
This will return the summary.xml file for all of the variables being collected for the node that contains 10.136.123.1. Here's one for ifInOctets and ifOutOctets for the whole system:
wget --http-user=admin --http-passwd=admin -O summary.xml \ 'http://172.16.8.100:8180/opennms/summary/results.htm?filterRule=ipaddr+iplike+*.*.*.*&startTime=1184173183&endTime=1185219010&attributeSieve=(ifInOctets|ifOutOctets)'
Version History/Availability
- This feature was added in version 1.3.6
Keywords: XML, RRD, export, integration, statistics, reporting






