I am trying to get rrd graphs working, but I am getting the infamous "RRD library is missing; cannot store metrics". Everything I have read about the error applied to redhat or ubuntu. I am using Solaris 10. I installed both the rrdtool Solaris package and the RubyRRDtool gem. When I run "ruby -rRRDtool -e ''puts :yep''", it successfully returns "yep" (though not until I linked /usr/local/lib/ruby/site_ruby/1.8/ i386-solaris2.10 to /usr/local/lib/ruby/gems/1.8/gems/ RubyRRDtool-0.6.0/RRDtool.so). I was also able to generate rrds and pngs using the minmax.rb script includes in the examples directory in the RubyRRDtool gem source. I guess my question is, where exactly is puppet looking for the library? Is the library named RRDtool.so? Thanks for the help. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Are you using by any chance any trunk version of puppet? As far as I know puppet currently (0.25.4) uses RubyRRDTool gem which is not the same as the ruby rrd library bundled in RRDtools (despite the fact that the bundled version might be a fork of the gem). On ubuntu the ruby rrd bindings are from the lib bundled, and the gem does not compile. I''m guessing that in your case the package is also the bundled lib. I have made a patch (before the 0.25.2 release) to switch to the ruby rrd lib bundled with rrdtools the latest version of it is posted here: http://groups.google.com/group/puppet-dev/browse_thread/thread/59553ed916489de6/89f69b6fb7f0154d the ticket I have made: http://projects.reductivelabs.com/issues/2891 This is why I''m asking for the version of puppet. As this was a low priority feature and a release was due soon it was delayed. Leaving all this aside, aren''t the reports from foreman and/or puppet dashboard enough? I''m guessing the rrd graphics will be soon obsoleted. Silviu On Thu, 21 Jan 2010 11:58:22 -0800 (PST), John Lyman <jlyman2@gmail.com> wrote:> I am trying to get rrd graphs working, but I am getting the infamous > "RRD library is missing; cannot store metrics". Everything I have > read about the error applied to redhat or ubuntu. I am using Solaris > 10. > > I installed both the rrdtool Solaris package and the RubyRRDtool gem. > When I run "ruby -rRRDtool -e ''puts :yep''", it successfully returns > "yep" (though not until I linked /usr/local/lib/ruby/site_ruby/1.8/ > i386-solaris2.10 to /usr/local/lib/ruby/gems/1.8/gems/ > RubyRRDtool-0.6.0/RRDtool.so). I was also able to generate rrds and > pngs using the minmax.rb script includes in the examples directory in > the RubyRRDtool gem source. > > I guess my question is, where exactly is puppet looking for the > library? Is the library named RRDtool.so? > > Thanks for the help.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
And I''ve managed to dodge one of your questions. :-) The include is done in ./lib/puppet/feature/base.rb (last line) which uses the lib/puppet/util/feature.rb. Basically you end up with a good old "require RRDtool" in load_library from feature.rb, if this require failsm you will get, further in the runtime, the error you specified. This require is standard for ruby, so google should turn out better answers than I do (I am not familiar with ruby library system). Silviu On Thu, 21 Jan 2010 11:58:22 -0800 (PST), John Lyman <jlyman2@gmail.com> wrote:> I am trying to get rrd graphs working, but I am getting the infamous > "RRD library is missing; cannot store metrics". Everything I have > read about the error applied to redhat or ubuntu. I am using Solaris > 10. > > I installed both the rrdtool Solaris package and the RubyRRDtool gem. > When I run "ruby -rRRDtool -e ''puts :yep''", it successfully returns > "yep" (though not until I linked /usr/local/lib/ruby/site_ruby/1.8/ > i386-solaris2.10 to /usr/local/lib/ruby/gems/1.8/gems/ > RubyRRDtool-0.6.0/RRDtool.so). I was also able to generate rrds and > pngs using the minmax.rb script includes in the examples directory in > the RubyRRDtool gem source. > > I guess my question is, where exactly is puppet looking for the > library? Is the library named RRDtool.so? > > Thanks for the help.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Fri, Jan 22, 2010 at 9:00 AM, Silviu Paragina <silviu@paragina.ro> wrote:> Are you using by any chance any trunk version of puppet? > > As far as I know puppet currently (0.25.4) uses RubyRRDTool gem which is > not the same as the ruby rrd library bundled in RRDtools (despite the fact > that the bundled version might be a fork of the gem). On ubuntu the ruby > rrd bindings are from the lib bundled, and the gem does not compile. I''m > guessing that in your case the package is also the bundled lib. > > if anyone is interested, I had compiled in the past a gem which works forubuntu as well: http://theforeman.org/RubyRRDtool-0.6.0.gem> Leaving all this aside, aren''t the reports from foreman and/or puppet > dashboard enough? I''m guessing the rrd graphics will be soon obsoleted. > > I agree, unless you want to keep values for months/years timeframe.Ohad -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 22 January 2010 18:58, Ohad Levy <ohadlevy@gmail.com> wrote:> > On Fri, Jan 22, 2010 at 9:00 AM, Silviu Paragina <silviu@paragina.ro> wrote: >> >> Are you using by any chance any trunk version of puppet? >> >> As far as I know puppet currently (0.25.4) uses RubyRRDTool gem which is >> not the same as the ruby rrd library bundled in RRDtools (despite the fact >> that the bundled version might be a fork of the gem). On ubuntu the ruby >> rrd bindings are from the lib bundled, and the gem does not compile. I''m >> guessing that in your case the package is also the bundled lib. >> > if anyone is interested, I had compiled in the past a gem which works for > ubuntu as well: http://theforeman.org/RubyRRDtool-0.6.0.gem >Although I haven''t officially announced it yet, I''ve tentatively taken over maintainership of the Ruby RRD bindings. The state of the previous bindings are pretty lame, and the new library aims to build a Ruby API around the C bindings. The new package is called Errand, and can be installed from Gemcutter with: gem install errand If you end up trying it out, please report any bugs you find, and I''ll get them fixed ASAP. Cheers, Lindsay -- http://holmwood.id.au/~lindsay/ (me) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> Are you using by any chance any trunk version of puppet?I am running puppet 0.25.3 on Solaris, installed using the gem.> As far as I know puppet currently (0.25.4) uses RubyRRDTool gem which is > not the same as the ruby rrd library bundled in RRDtools (despite the fact > that the bundled version might be a fork of the gem). On ubuntu the ruby > rrd bindings are from the lib bundled, and the gem does not compile. I''m > guessing that in your case the package is also the bundled lib.I do have the RubyRRDTool gem installed. I am running Solaris, not Ubuntu. I reinstalled the RubyRRDTool gem with "--with-rrd-dir=/usr/local/ rrdtool-1.2.19" as an argument and it it''s working for me now. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.