build_graphs - builds graphs from data collected by status daemon




build_graphs [OPTION]


This program attempts to find the rrd files produced by an status daemon and generate charts of the data they contain. Also builds three HTML files that allow for easier viewing of the graphs


--only-graphs Only produce updated graphs from the RRD data. Do not produce the additional HTML pages to display them.

--only-html Only produce the HTML pages to display the current graphs. Do not update the graphs that are there.


There are two ways to tweak the graphs that are produced:

The default color for the graphs can be changed. Look in the build_graphs script for '@colors'. It is a list of six digit hex numbers, with each of the three pairs of numbers representing the amount of red, green, and blue in the line/area printed on the graph. Change these numbers to alter the appearance of the charts.

One caveat---this is a little odd, but it makes the code later cleaner---the last color in the list will be the first used. From there, each new line/area will used the next color in the list, and wrap around the list correctly. Add more colors if you have a lot of items and want unique colors for eveything.

test specific items
Items such as title and vertical axis labels can be overridden on a per test basis. All that is needed is to add an entry in the %settings hash table with the folowing items: title - graph will show '<title> last 48 hours' label - vertical axis label type - LINE[123] or AREA, for the first item graphed stack - graph type for all subsequent items graphed lower - lower limit of graph upper - upper limit of graph

The defaults are: title - test name lable - list of all data source names type - LINE1 stack - LINE1 lower - 0 upper - 1

See the rrdtool website for more information on these items:

Example: $settings{df} = { title => ``Disk Usage'', label => ``% full'', type => 'LINE2', stack => 'LINE2', lower => 0, upper => 100, };