A patch to use the ruby bindings to rrdtool found here: http://rubyforge.org/projects/rrrdtool/
Some caveats:
- the library seems to be still in alpha
- it seems to not have been updated since april 2006
- need to get the bindings through subversion; use: svn checkout svn://rubyforge.org/var/svn/rrrdtool
- and then manually place the files in 'lib' on your ruby path (for example somewhere in /usr/local/lib/site_ruby)
- also, you need rrdtool (I think), in debian and ubuntu do: aptitude install rrdtool
What's more, the patch contains some hackish things I'm not certain about. For example, I have created an instance variable @rrd, but I'm thinking maybe that could be solved differently. And I'm not entirely sure about the two "include RRDtool.." lines. Comments on my coding are very welcome.
It works for me (Ubuntu Feisty). I get nice graphs in my reports dir.
thijs