7 const char *rrd_database; /* Database file path */
8 const 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 const char **options; /* Null terminated list of rrdgraph options */
15 int text_lead; /* Number of spaces at the beginning of line */
16 const char **text; /* Null terminated list of text lines */
17 const char *updatestr; /* "Last update" string comment */
20 struct rrd_data_source {
21 const char *type; /* Data source type, such as GAUGE or COUNTER */
23 int heartbeat; /* Heartbeat value in seconds */
24 double min; /* Maximum and minimum values accepted by data source */
29 const char *type; /* Archive type, such as MAX, MIN or AVERAGE */
30 double xff; /* xfiles factor, 0..1 exclusive */
31 int steps; /* How many points needed to construct data point */
32 int rows; /* How many points are kept */
36 const char *filename; /* rrd database location */
37 int interval; /* Update interval */
39 /* Parser to aquire data for rrd */
40 struct parser_info *parser;
41 const char **parser_data; /* data to be fed to the parser */
42 void *parser_state; /* pointer to parser private state */
44 char *const *pre_draw_cmd; /* Command to execute prior drawing images*/
45 char *const *post_draw_cmd; /* ..and after drawing images */
47 struct rrd_image **images; /* Images to draw */
49 struct rrd_data_source *sources; /* These are currently only used */
50 struct rrd_archive *archives; /* generating new rrd database */
52 const char *logfile; /* Name of a file where data can be logged */
53 const char *logfile_timestamp_fmt;
55 int last_update; /* When was the data last updated */
56 const char *name; /* Name of the database */
59 int rrdtool_draw_image(struct rrd_image *image);
60 int rrdtool_draw_images(struct rrd_image **image);
61 int rrdtool_update_data(struct rrd_database *rrd);
62 struct rrd_database *get_outdated_db(struct rrd_database **dblist);
63 int get_next_update(struct rrd_database **dblist, const char **name);
64 int rrdtool_create_missing_databases(struct rrd_database *dbs[]);