Difference between revisions of "RRDtool (Acronym for Round-Robin Database Tool)"

From Bauman National Library
(Created page with "__TOC__ ==Definition== RRDtool (acronym for round-robin database tool) aims to handle time series data like network bandwidth, temperatures, CPU load, etc. The data are store...")
 
Line 1: Line 1:
__TOC__
+
{{Infobox software
 
+
| name                  = RRDtool
 +
| title                  = RRDtool
 +
| logo                  = [[File:Rrddemo.png|200px|fraimed|center]]
 +
| developer              = Tobias Oetiker
 +
| programming language  = [[C]],[[Perl]]
 +
| language              = English
 +
| status                = Active
 +
| latest release version = 1.5.3
 +
| latest release date    = {{Start date|2015|5|1}}
 +
| operating system      = [[Windows]],[[Linux]],[[OS X]]
 +
| website                = {{URL|http://oss.oetiker.ch/rrdtool//}}
 +
}}
 
==Definition==
 
==Definition==
 
RRDtool (acronym for round-robin database tool) aims to handle time series data like network bandwidth, temperatures, CPU load, etc. The data are stored in a circular buffer based database, thus the system storage footprint remains constant over time. Note that this is distinct from the computer science concept of round-robin scheduling
 
RRDtool (acronym for round-robin database tool) aims to handle time series data like network bandwidth, temperatures, CPU load, etc. The data are stored in a circular buffer based database, thus the system storage footprint remains constant over time. Note that this is distinct from the computer science concept of round-robin scheduling
 +
 +
==RRD Tools==
 +
* <Code> rrdtool </code> - utility for working with ring database
 +
* <Code> rrdcached </code> - the daemon to cache data
 +
* <Code> librrd </code> - set of libraries
 +
* <Code> rrdbuild </code> - tools for building software
 +
* <Code> rrdcgi </code> - tools for creating web pages with graphics based on templates
 +
* <Code> rrdcreate </code> - the program for creation of new databases
 +
* <Code> rrddump </code> - The proceeding utility dump information in XML format
 +
* <Code> rrdfetch </code> - utility to obtain information from the annular database
 +
* <Code> rrdfirst </code> - the utility that returns the first set of data, so-called [2] RRA (English round robin archive.)
 +
* <Code> rrdflushcached </code> - Reset cache for a specific database
 +
* <Code> rrdgraph </code> - a set of tools for graphic functions
 +
* <Code> rrdgraph_data </code> - preconditioning function data rrdgraph
 +
* <Code> rrdgraph_examples </code> - examples of rrdgraph
 +
* <Code> rrdgraph_graph </code> - CLI (. English Command Line Interface) command-line interface for rrdgraph
 +
* <Code> rrdgraph_libdbi </code> - sampling information through libdbi for subsequent visualization
 +
* <Code> rrdgraph_rpn </code> - stack processing tool to RPN RPN format (English Reverse Polish Notation.)
 +
* <Code> rrdinfo </code> - displays information about a specific database
 +
* <Code> rrdlast </code> - the utility that returns the last set of data, the so-called RRA (English round robin archive.)
 +
* <Code> rrdlastupdate </code> - returns the most relevant information for now
 +
* <Code> rrdresize </code> - changes the size of the RRA (English round robin archive.) And creates a new file type .rrd
 +
* <Code> rrdrestore </code> - restore data from a previously created dump in XML format
 +
* <Code> rrdtune </code> - utility to configure the basic RRD
 +
* <Code> rrdupdate </code> - the introduction of a new set of data into the database
 +
* <Code> rrdxport </code> - exports data (in XML format) of one or more bases
 +
 +
==Examples==
 +
A simple HTML page with a single schedule:
 +
<center>[[File: RRDTool.png|400px]]</center>
 +
 +
Schedule from RRD database selection form as a data source:
 +
<center>[[File: RRDTool1.png|400px]]</center>
 +
 +
==RRD Server==
 +
If you want to run RRDtool as a server application, you must select TCP / IP port for it. To this end, Unix-like operating systems, you need to register in the service description <code>/etc/services</code>:
 +
<syntaxhighlight lang="sql">
 +
    rrdsrv 13900/tcp RRD server
 +
</syntaxhighlight>
 +
You can use any port is not busy. Customers should refer to the server using the selected port.
 +
Once you have selected the port, it is possible to provide automatic start RRD server at startup prescribing the <code>/etc/inetd.conf</code> (or equivalent for your operating system):
 +
<syntaxhighlight lang="sql">
 +
    rrdsrv stream tcp nowait root /opt/rrd/bin/rrdtool rrdtool - /var/rrd
 +
</syntaxhighlight>
 +
Do not forget to create the directory to store the database file <code> /var/rrd </code> and restart the <code> inetd </code> (or just reboot).
 +
If you did everything correctly, you'll be able to access the server via sockets in Perl, for example by using <code> netcat </code>. Quickly check server operation by running the command:
 +
<syntaxhighlight lang="sql">
 +
      telnet localhost rrdsrv
 +
</syntaxhighlight>
 +
 +
== Applications that use RRDtool ==
 +
* [[Ganglia]]
 +
* [[Nagios]]
 +
* [[Cacti]]
 +
* collectd
 +
* Lighttpd
 +
* Munin
 +
* ntop
 +
* OpenNMS
 +
* Zenoss
 +
 +
== References ==
 +
* [http://oss.oetiker.ch/rrdtool/  RRDtool]
 +
* [http://www.bog.pp.ru/work/rrdtool.html RRDtool Structure ]
 +
* [https://ru.wikibooks.org/wiki/RRDtool Wiki RRDtool]
 +
 +
== Notes ==
 +
{{reflist}}

Revision as of 15:57, 14 June 2016

</td></tr>
RRDtool
fraimed
Developer(s) Tobias Oetiker
Stable release
1.5.3 / May 1, 2015 (2015-05-01)
Repository {{#property:P1324}}
Development status Active
Written in C,Perl
Operating system Windows,Linux,OS X
Available in English
Website oss.oetiker.ch/rrdtool//

Definition

RRDtool (acronym for round-robin database tool) aims to handle time series data like network bandwidth, temperatures, CPU load, etc. The data are stored in a circular buffer based database, thus the system storage footprint remains constant over time. Note that this is distinct from the computer science concept of round-robin scheduling

RRD Tools

  • rrdtool - utility for working with ring database
  • rrdcached - the daemon to cache data
  • librrd - set of libraries
  • rrdbuild - tools for building software
  • rrdcgi - tools for creating web pages with graphics based on templates
  • rrdcreate - the program for creation of new databases
  • rrddump - The proceeding utility dump information in XML format
  • rrdfetch - utility to obtain information from the annular database
  • rrdfirst - the utility that returns the first set of data, so-called [2] RRA (English round robin archive.)
  • rrdflushcached - Reset cache for a specific database
  • rrdgraph - a set of tools for graphic functions
  • rrdgraph_data - preconditioning function data rrdgraph
  • rrdgraph_examples - examples of rrdgraph
  • rrdgraph_graph - CLI (. English Command Line Interface) command-line interface for rrdgraph
  • rrdgraph_libdbi - sampling information through libdbi for subsequent visualization
  • rrdgraph_rpn - stack processing tool to RPN RPN format (English Reverse Polish Notation.)
  • rrdinfo - displays information about a specific database
  • rrdlast - the utility that returns the last set of data, the so-called RRA (English round robin archive.)
  • rrdlastupdate - returns the most relevant information for now
  • rrdresize - changes the size of the RRA (English round robin archive.) And creates a new file type .rrd
  • rrdrestore - restore data from a previously created dump in XML format
  • rrdtune - utility to configure the basic RRD
  • rrdupdate - the introduction of a new set of data into the database
  • rrdxport - exports data (in XML format) of one or more bases

Examples

A simple HTML page with a single schedule:

RRDTool.png

Schedule from RRD database selection form as a data source:

RRDTool1.png

RRD Server

If you want to run RRDtool as a server application, you must select TCP / IP port for it. To this end, Unix-like operating systems, you need to register in the service description /etc/services:

     rrdsrv 13900/tcp RRD server

You can use any port is not busy. Customers should refer to the server using the selected port. Once you have selected the port, it is possible to provide automatic start RRD server at startup prescribing the /etc/inetd.conf (or equivalent for your operating system):

     rrdsrv stream tcp nowait root /opt/rrd/bin/rrdtool rrdtool - /var/rrd

Do not forget to create the directory to store the database file /var/rrd and restart the inetd (or just reboot). If you did everything correctly, you'll be able to access the server via sockets in Perl, for example by using netcat . Quickly check server operation by running the command:

      telnet localhost rrdsrv

Applications that use RRDtool

References

Notes

Cite error: Invalid <references> tag; parameter "group" is allowed only.

Use <references />, or <references group="..." />