Rrdcached
Subscribe

From OpenNMS

Jump to: navigation, search

Contents

Work in progress

This is a work in progress on DJ Gregor's work to create an RrdStrategy that uses rrdtool's caching daemon, rrdcached.

Code

See the attachments in issue NMS-3664. *This is not production-ready code, even remotely!!!*

Testing

Apply patches and build

Apply the two patches listed above and build OpenNMS (or at least build the opennms-rrdcached-api and opennms-rrd-api projects).

Install rrdtool 1.4

You're smart, you can figure out how to do this.

Edit rrd-configuration.properties

Make sure that the strategy class is set to the new RrdcachedRrdStrategy like this:

 org.opennms.rrd.strategyClass=org.opennms.netmgt.rrd.rrdtool.RrdcachedRrdStrategy

Start rrdcached

I'm running it in the foreground like this:

 rrdcached -g -p /tmp/rrdcached.pid -l :42217

Start OpenNMS

Make sure that "rrdtool" is in the path of the OpenNMS daemon. The hacked-up RrdcachedRrdStrategy calls rrdtool without specifying a path (remember what I said about it not being production-ready?).

You *must* start OpenNMS after rrdcached is up and running and listening on the network. The RrdcachedRrdStrategy does not have any connection retry logic, so it will fail if rrdcached isn't up before OpenNMS (and it needs to stay up for the duration of OpenNMS running). This is why the code isn't yet production-ready. :-)

Resources