Difference between revisions of "RRDTool"
Jump to navigation
Jump to search
(→Update Database: Populated (section previously blank)) |
(→Retrieve From Database: Added "Graphing") |
||
Line 67: | Line 67: | ||
== Retrieve From Database == | == Retrieve From Database == | ||
=== Graphing === | |||
At minimum, you need to define the RRD from which you're going to plot data, a DEF (a data source definition), and a LINE (how to plot the data). The graph function assumes you want to plot for data in the RRD from 1 day ago to now. | |||
<pre> | |||
rrdtool graph graph.png DEF:cpu=svr-cpu.rrd:ds:AVERAGE LINE1:cpu#0000FF:"cpu usage" | |||
</pre> |