Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Apress - Books for Professionals by Professionals

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 124 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

rrdtool



SYNOPSIS

       rrdtool - | function


DESCRIPTION

       OVERVIEW

       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 triv­
       ial to store this data in a efficient and systematic man­
       ner. This is where rrdtool kicks in. It lets you log and
       analyze the data you gather from all kinds of data-sources
       (DS). 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 rrdtool check the corre­
       sponding man page.

       For an introduction to the usage of rrdtool make sure you
       check rrdtutorial.

       FUNCTIONS

       While the man pages talk of command line switches you have
       to set in order to make rrdtool work it is important to
       note that the rrdtool can be 'remote controlled' through a
       set of pipes. This saves a considerable amount of startup
       time when you plan to make rrdtool do a lot of things
       quickly. Check the section on "Remote Control" further
       down. There is also a number of language bindings for rrd­
       tool which allow you to use it directly from perl, python,
       tcl, php, ...

       create  Set up a new Round Robin Database (RRD). Check
               rrdcreate.

       update  Store new data values into an RRD. Check rrdup­
               date.

       graph   Create a graph from data stored in one or several
               RRD. Apart from generating graphs, data can also
               be extracted to stdout. Check rrdgraph.

       dump    Dump the contents of an RRD in plain ASCII. In
               connection with restore you can use it to trans­
               port an rrd from one architecture to another.
               Check rrddump.

       rrdresize
               Change the size of individual RRAs ... Dangerous!
               Check rrdresize.

       xport   Export data retrieved from one or several RRD.
               Check rrdxport

       rrdcgi  This is a standalone tool for producing rrd graphs
               on the fly. Check rrdcgi.

       HOW DOES RRDTOOL WORK?

       Data acquisition
               When monitoring the state of a system, it is con­
               venient 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 rrdtool lets you update the logfile at
               any time you want. It will automatically interpo­
               late the value of the data-source (DS) at the lat­
               est 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 cover­
               ing the whole year. rrdtool offers a solution to
               this problem through its data consolidation fea­
               ture. When setting up an Round Robin Database
               (RRD), you can define at which interval this con­
               solidation should occur, and what consolidation
               function (CF) (average, minimum, maximum, last)
               should be used to build the consolidated values
               (see rrdcreate). You can define any number of dif­
               ferent consolidation setups within one RRD. They
               will all be maintained on the fly when new data is
               loaded into the RRD.

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

               The use of RRAs guarantees that the RRD does 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 consoli­
               dation functions (CF) allows you to store exactly
               the type of information that actually interests
               you. (Maximum one minute traffic on the LAN, mini­
               mum temperature of the wine cellar, total minutes
               down time ...)

       Unknown Data
               As mentioned earlier, the RRD stores data at a
               constant interval. Now it may happen that no new
               data is available when a value has to be written
               to the RRD. Data acquisition may not be possible
               for one reason or an other. The rrdtool handles
               these situations by storing an *UNKNOWN* value
               into the database. The value '*UNKNOWN*' is sup­
               ported through all the functions of the database.
               When consolidating the amount of *UNKNOWN* data is
               accumulated and when a new consolidated value is
               ready to be written to its Round Robin Archive
               (RRA) 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
               *UNKNOWN* value will be written to the RRA.

       Graphing
               The rrdtool also allows one to generate reports in
               numerical and graphical form based on the data
               stored in one or several RRDs. The graphing fea­
               ture is fully configurable. Size, color and con­
               tents of the graph can be defined freely. Check
               rrdgraph for more information on this.

       REMOTE CONTROL

       When you start rrdtool with the command line option '-',
       it waits for input via standard in. With this feature you
       can improve performance by attaching rrdtool to another
       process (mrtg is one example) through a set of pipes. Over
       the pipes rrdtool accepts 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 u:usertime s:systemtime both values are run­
       ning totals of seconds since rrdtool was started. If an
       error occurs, a line of the form '"ERROR:" Description of
       error' will be printed. rrdtool will not abort if possi­
       ble, but follow the ERROR line with an OK line.
  




Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.04 Seconds