# Rrdtool and rails

**URL:** <https://www.ruby-forum.com/t/rrdtool-and-rails/118544>\
**Category:** Rails\
**Created:** [October 28, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/rrdtool-and-rails/118544 "2007-10-28T15:34:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rawn027](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d07c76/32.png) [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Post date:** [October 28, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/rrdtool-and-rails/118544/1 "2007-10-28T15:34:45Z")

</div>

How would one get the information stored in rrdtool into a database  
that rails can present to the user?  
Would it be possible to combine this data with other data in the same  
database to handle virtual connections between the data?

-Ron

---

<div class="post-metadata">

**Author:** ![rawn027](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d07c76/32.png) [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Post date:** [October 28, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/rrdtool-and-rails/118544/2 "2007-10-28T17:26:29Z")

</div>

On 10/28/07, Ronald V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> How would one get the information stored in rrdtool into a database  
> that rails can present to the user?  
> Would it be possible to combine this data with other data in the same  
> database to handle virtual connections between the data?
> 
> -Ron

rrdtool uses its own on-disk database format (called a round-robin  
database) which handles expiry, the data scaling, etc. internally. It  
won’t map well into SQL, so it’s probably best to just keep the files  
external to the “real” database.

I have not yet found a ruby rrd binding, so I’ve been using a call out  
to rrdtool to generate my images, and putting them in the public  
directory so they can be linked to with the usual tricks.

–Michael

---

<div class="post-metadata">

**Author:** ![rawn027](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d07c76/32.png) [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Post date:** [October 28, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/rrdtool-and-rails/118544/3 "2007-10-28T19:43:31Z")

</div>

Just FYI - [http://rubyforge.org/projects/rrrdtool/](http://rubyforge.org/projects/rrrdtool/)  
-Ron
