In order to create the test RRD file, use the following command: Having created the test data, you can now start to generate your first RRDtool-based graph.It is going to be a very simple graph displaying only the pure data.Execute the following code at the command line interface (CLI): This will create the following graph: So what does this command actually do?
You need to have the RRDtool in your path for the following commands to work.
Let's begin with the RRD example and use that RRD file as the basis for our graphs.
A note for Windows users The following examples also work for Windows.
Simply replace the RRDtool command with the full path to the RRDtool binary, for example, use C:\rrdtool\instead of rrdtool.
You also told RRDtool to draw a two-pixel line (LINE2) using this data set and stored the resulting graph as data_
The RRDtool automatically creates the X- and Y-axis for you and also inserts the time and value description.
Now that you have added some description to the graph, you can also add a legend to it.
For this, you are going to use the LAST, AVERAGE, and MAX poller values.
You will also have to copy the Deja Vu font from the RRDtool directory to your Windows fonts directory.