[rrd-users] How do I view contents of an rrd database?

David Ball davidtball at gmail.com
Fri May 18 22:08:09 CEST 2007

  Hi Bita.  An rrd database is just a file, so in order to delete it,
you can simply delete the file using the appropriate command on your
operating system.
   As for viewing the contents of the database, you might make use of
the 'rrdtool dump' command, or perhaps 'rrdtool fetch', depending on
what format you wish to see the output in.  See the docs for the
specifics on such commands.
  As for the mailing list, I have not seen any search option either.
  Hope that helps.


On 5/18/07, betamaz <betamaz at gmail.com> wrote:
> Simon, thank you for your previous response. Related to my previous posting,
> I have the following questions:
> How do I output the values stored in an rrd database?
> Also, does rrdtool have an option for viewing all the rrd databases --
> similar to that of mysql's "SHOW DATABASES" command? And is it possible to
> delete an existing rrd database?
> Also, does the rrd-users archive have a search option? so far, I've tried
> googling with mixed results.
> - Bita.
> On 5/16/07, Simon Hobson <linux at thehobsons.co.uk> wrote:
> >
> > betamaz wrote:
> > >I'm new to rrdtool and have been reading up on the tutorial posted
> > >on the main webpage. The examples in the tutorial describe how to
> > >create a database by taking measurements. For example, using snmp or
> > >it gives basic examples where the inputs are via the rrdtool create
> > >command line (for example the speed inputs for test.rrd). Is there a
> > >way, to read inputs from command line and create a database out of
> > >that (similar to gnuplot)?
> >
> > Yes, RRD doesn't care where the data comes from, all it sees are a
> > series of update with timestamp and a number of values. As long as
> > the timestamps a) make sense for the data, and b) are always
> > increasing, then rrd will handle it.
> >
> > So assuming you have a file containing a series of records, one per
> > line, of the form time:value then you simply need to write a script
> > of the form :
> >
> > create rrd file
> > while (read timestamp:value pair)
> >    update rrd with timestamp and value
> > done
> > create graph
> >
> >   With the exception of drawing a graph which normally takes a few
> > lines of arguments, the above can be written in about the same number
> > of statements in most languages (whether that be Bash shell script,
> > Perl, ...). How much extra checking etc you put in is up to you and
> > what you know about the source of the data - such as is the file
> > format likely to be correct (ie it's created by a trustworthy
> > automated tool) or do you need to do extensive validation on the
> > input ?
> >

More information about the rrd-users mailing list