Hi everyone,
I'm not sure where the best place to submit a patch is -- mailing list, or somewhere on the forum?
Anyway, I've been working on pulling in images directly from graph_image.php for use in some outside "web gadgets." I didn't need a title in the image since my web app already does this, and it was a real pain to try and shoehorn the resolution of the full image into a specific size of a div tag. (Since RRD is generating a graph based on the resolution of the data canvas, not the entire image with legend and stuff) If the resolution is off, the browser attempts to do a quick & dirty resize of the image which results in some nasty looking artifacts in the graphs.
I've added these options to graph_image.php:
graph_notitle=Y -- disable generation of the title in the graph. (Translates to the --title option on rrdgraph)
graph_full_size=Y -- the graph_width and graph_height resolutions specify the
FINAL dimensions of the image, including title, legend, and rules. (Translates to the --full-size-mode option to rrdgraph)
This patch was created against Cacti 0.8.7g.
Thanks for your consideration into the official source! It would be handy to do upgrades and not have to manually apply my patch to new versions.
