Puppet: System Administration Automated

Support

Ticket #659 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

Use different rrd library bindings for rrdgraphs

Reported by: thijs Assigned to: luke
Priority: normal Milestone: fozzie
Component: library Version: 0.22.4
Severity: normal Keywords: reports, rrd, patch
Cc: Triage Stage: Unreviewed
Attached Patches: Code Complexity: Unknown

Description

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

Attachments

metric.diff (4.2 kB) - added by thijs on 06/08/07 02:56:38.
generated with: svn diff lib/puppet/util/metric.rb -x -b
metric.2.diff (2.8 kB) - added by thijs on 06/11/07 02:34:00.
diff generated with git

Change History

06/08/07 02:56:38 changed by thijs

  • attachment metric.diff added.

generated with: svn diff lib/puppet/util/metric.rb -x -b

06/11/07 02:33:04 changed by thijs

  • keywords changed from reports, rrd to reports, rrd, patch.

Ok, bitten the bullet. Tried to use the more up-to-date bindings found here: http://rubyforge.org/projects/rubyrrdtool/

Turns out this library is much more in line with the current puppet code. More mature too, so just follow the instructions to install, have rrdtool libs installed and go crazy. Still got the @rrd instance var, though.

gr, Thijs

06/11/07 02:34:00 changed by thijs

  • attachment metric.2.diff added.

diff generated with git

06/12/07 23:39:06 changed by luke

  • status changed from new to assigned.
  • milestone set to fozzie.

06/14/07 08:07:51 changed by luke

  • status changed from assigned to closed.
  • resolution set to fixed.

Applied the metric.2.diff in [2579].