const char **options; /* Null terminated list of rrdgraph options */
int text_lead; /* Number of spaces at the beginning of line */
const char **text; /* Null terminated list of text lines */
+ const char *updatestr; /* "Last update" string comment */
};
struct rrd_data_source {
int interval; /* Update interval */
/* Parser to aquire data for rrd */
- int (*parse)(char *rrd_data, const char **parser_data);
+ struct parser_info *parser;
const char **parser_data; /* data to be fed to the parser */
+ void *parser_state; /* pointer to parser private state */
+
+ char *const *pre_draw_cmd; /* Command to execute prior drawing images*/
+ char *const *post_draw_cmd; /* ..and after drawing images */
struct rrd_image **images; /* Images to draw */
struct rrd_data_source *sources; /* These are currently only used */
struct rrd_archive *archives; /* generating new rrd database */
- int last_update; /* When was the data last updated */
+ const char *logfile; /* Name of a file where data can be logged */
+ const char *logfile_timestamp_fmt;
+
+ time_t last_update; /* When was the data last updated */
+ int update_active;
+ int update_backoff;
const char *name; /* Name of the database */
};