RRDTOOL(1)                          rrdtool                         RRDTOOL(1)



[1mNAME[0m
       rrdtool - round robin database tool

[1mSYNOPSIS[0m
       [1mrrdtool - [22m| [4mfunction[0m

[1mDESCRIPTION[0m
       [1mOVERVIEW[0m

       It is pretty easy to gather status information from all sorts of
       things, ranging from the temperature in your office to the number of
       octets which have passed through the FDDI interface of your router. But
       it is not so trivial to store this data in a efficient and systematic
       manner. This is where [1mrrdtool [22mkicks in. It lets you [4mlog[24m [4mand[24m [4manalyze[24m the
       data you gather from all kinds of data-sources ([1mDS[22m). The data analysis
       part of rrdtool is based on the ability to quickly generate graphical
       representations of the data values collected over a definable time
       period.

       In this man page you will find general information on the design and
       functionality of the Round Robin Database Tool (rrdtool). For a more
       detailed description of how to use the individual functions of the [1mrrd-[0m
       [1mtool [22mcheck the corresponding man page.

       For an introduction to the usage of rrdtool make sure you check rrdtu-
       torial.

       [1mFUNCTIONS[0m

       While the man pages talk of command line switches you have to set in
       order to make [1mrrdtool [22mwork it is important to note that the [1mrrdtool [22mcan
       be 'remote controlled' through a set of pipes. This saves a consider-
       able amount of startup time when you plan to make [1mrrdtool [22mdo a lot of
       things quickly. Check the section on "Remote Control" further down.
       There is also a number of language bindings for rrdtool which allow you
       to use it directly from perl, python, tcl, php, ...

       [1mcreate  [22mSet up a new Round Robin Database (RRD). Check rrdcreate.

       [1mupdate  [22mStore new data values into an RRD. Check rrdupdate.

       [1mgraph   [22mCreate a graph from data stored in one or several RRD. Apart
               from generating graphs, data can also be extracted to stdout.
               Check rrdgraph.

       [1mdump    [22mDump the contents of an RRD in plain ASCII. In connection with
               restore you can use it to transport an rrd from one architec-
               ture to another.  Check rrddump.

       [1mrestore [22mRestore an RRD in XML format to a binary rrd ... Check
               rrdrestore

       [1mfetch   [22mGet data for a certain time period from a RRD. The graph func-
               tion uses fetch to retrieve its data from an rrd. Check rrd-
               fetch.

       [1mtune    [22mAlter setup of an RRD. Check rrdtune.

       [1mlast    [22mFind last update time of an RRD. Check rrdlast.

       [1minfo    [22mDisplay information about an RRD ... Check rrdinfo

       [1mrrdresize[0m
               Change the size of individual RRAs ... Dangerous! Check rrdre-
               size.

       [1mxport   [22mExport data retrieved from one or several RRD. Check rrdxport

       [1mrrdcgi  [22mThis is a standalone tool for producing rrd graphs on the fly.
               Check rrdcgi.

       [1mHOW DOES RRDTOOL WORK?[0m


       Data acquisition
               When monitoring the state of a system, it is convenient to have
               the data available at a constant interval. Unfortunately you
               may not always be able to fetch data at exactly the time you
               want to. Therefore [1mrrdtool [22mlets you update the logfile at any
               time you want. It will automatically interpolate the value of
               the data-source ([1mDS[22m) at the latest official time-slot and write
               this value to the log. The value you have supplied is stored as
               well and is also taken into account when interpolating the next
               log entry.

       Consolidation
               You may log data at a 1 minute interval, but you are also be
               interested to know the development of the data over the last
               year. You could do this by simply storing the data in 1 minute
               interval, for one year. While this would take considerable disk
               space it would also take a lot of time to analyze the data when
               you wanted to create a graph covering the whole year. [1mrrdtool[0m
               offers a solution to this problem through its data consolida-
               tion feature. When setting up an Round Robin Database ([1mRRD[22m),
               you can define at which interval this consolidation should
               occur, and what consolidation function ([1mCF[22m) (average, minimum,
               maximum, last) should be used to build the consolidated values
               (see rrdcreate). You can define any number of different consol-
               idation setups within one [1mRRD[22m. They will all be maintained on
               the fly when new data is loaded into the [1mRRD[22m.

       Round Robin Archives
               Data values of the same consolidation setup are stored into
               Round Robin Archives ([1mRRA[22m). This is a very efficient manner to
               store data for a certain amount of time, while using a known
               amount of storage space.

               It works like this: If you want to store 1000 values in 5
               minute interval, [1mrrdtool [22mwill allocate space for 1000 data val-
               ues and a header area. In the header it will store a pointer
               telling which one of the values in the storage area was last
               written to. New values are written to the Round Robin Archive
               in a ...  you guess it ... round robin manner. This automati-
               cally limits the history to the last 1000 values. Because you
               can define several [1mRRA[22ms within a single [1mRRD[22m, you can setup
               another one, storing 750 data values at a 2 hour interval and
               thus keeping a log for the last two months although at a lower
               resolution.

               The use of [1mRRA[22ms guarantees that the [1mRRD [22mdoes not grow over time
               and that old data is automatically eliminated. By using the
               consolidation feature, you can still keep data for a very long
               time, while gradually reducing the resolution of the data along
               the time axis. Using different consolidation functions ([1mCF[22m)
               allows you to store exactly the type of information that actu-
               ally interests you. (Maximum one minute traffic on the LAN,
               minimum temperature of the wine cellar, total minutes down time
               ...)

       Unknown Data
               As mentioned earlier, the [1mRRD [22mstores data at a constant inter-
               val. Now it may happen that no new data is available when a
               value has to be written to the [1mRRD[22m. Data acquisition may not be
               possible for one reason or an other. The [1mrrdtool [22mhandles these
               situations by storing an [4m*UNKNOWN*[24m value into the database. The
               value '[4m*UNKNOWN*[24m' is supported through all the functions of the
               database. When consolidating the amount of [4m*UNKNOWN*[24m data is
               accumulated and when a new consolidated value is ready to be
               written to its Round Robin Archive ([1mRRA[22m) a validity check is
               performed to make sure that the percentage of unknown data in
               the new value is below a configurable level. If so, an
               [4m*UNKNOWN*[24m value will be written to the [1mRRA[22m.

       Graphing
               The [1mrrdtool [22malso allows one to generate reports in numerical
               and graphical form based on the data stored in one or several
               [1mRRD[22ms. The graphing feature is fully configurable. Size, color
               and contents of the graph can be defined freely. Check rrdgraph
               for more information on this.

       [1mREMOTE CONTROL[0m

       When you start [1mrrdtool [22mwith the command line option '[1m-[22m', it waits for
       input via standard in. With this feature you can improve performance by
       attaching [1mrrdtool [22mto another process (mrtg is one example) through a
       set of pipes. Over the pipes [1mrrdtool [22maccepts the same arguments as on
       the command line. When a command is completed, rrdtool will print the
       string  '"OK"', followed by timing information of the form [1mu:[4m[22musertime[0m
       [1ms:[4m[22msystemtime[24m both values are running totals of seconds since rrdtool
       was started. If an error occurs, a line of the form '"ERROR:" [4mDescrip-[0m
       [4mtion[24m [4mof[24m [4merror[24m' will be printed. [1mrrdtool [22mwill not abort if possible, but
       follow the ERROR line with an OK line.

[1mSEE ALSO[0m
       rrdcreate, rrdupdate, rrdgraph, rrddump, rrdfetch, rrdtune, rrdlast,
       rrdxport

[1mBUGS[0m
       Bugs ? Features !

[1mAUTHOR[0m
       Tobias Oetiker <oetiker@ee.ethz.ch>



1.0.41                            2002-11-29                        RRDTOOL(1)
