7 char *rrd_database; /* Database file path */
8 char *image_filename; /* Output image */
9 int width; /* Image dimensions */
11 char timestart[MAX_STRLEN];
12 char timeend[MAX_STRLEN];
13 char imageformat[MAX_STRLEN];
14 char **options; /* Null terminated list of rrdgraph options */
15 int text_lead; /* Number of spaces at the beginning of line */
16 char **text; /* Null terminated list of text lines */
19 struct rrd_data_source {
20 char *type; /* Data source type, such as GAUGE or COUNTER */
22 int heartbeat; /* Heartbeat value in seconds */
23 double min; /* Maximum and minimum values accepted by data source */
28 char *type; /* Archive type, such as MAX, MIN or AVERAGE */
29 double xff; /* xfiles factor, 0..1 exclusive */
30 int steps; /* How many points needed to construct data point */
31 int rows; /* How many points are kept */
35 char *filename; /* rrd database location */
36 int interval; /* Update interval */
38 /* Parser to aquire data for rrd */
39 int (*parse)(char *rrd_data, void *parser_data);
40 void *parser_data; /* data to be fed to the parser */
42 struct rrd_image **images; /* Images to draw */
44 struct rrd_data_source *sources; /* These are currently only used */
45 struct rrd_archive *archives; /* generating new rrd database */
47 int last_update; /* When was the data last updated */
48 char *name; /* Name of the database */
51 int rrdtool_draw_image(struct rrd_image *image);
52 int rrdtool_draw_images(struct rrd_image **image);
53 int rrdtool_update_data(struct rrd_database *rrd);
54 int rrdtool_create_missing_databases(struct rrd_database *dbs[]);