[rrd-developers] Patch for RRDTool 1.4 trunk to allow rrdcached to work with first, last, create, info
s.shipway at auckland.ac.nz
Thu Sep 16 07:26:39 CEST 2010
I have patched the current RRDTool trunk sources (rrdtool-1.4.99910091600) to allow the rrdcached to work with a few more commands, with a view to improving MRTG support for rrdcached.
You can download the combined diff from ftp://ftp.auckland.ac.nz/pub/tmp/rrd-changes.dif if you're interested.
I am still testing these prior to officially submitting them to Tobi but would appreciate any feedback from the rrd-developers community.
These patches do the following:
Add INFO <filename>, FIRST <filename> <index>, LAST <filename> and CREATE <rrdfile> [-b start][-s step][-O] <DSdefs> <RRAdefs> to the rrdcached functions.
Add rrd_create_set_no_overwrite as a function in rrd_create.c to allow the overwrite flag to be set externally
Add rrdc_info, rrdc_first, rrdc_last, rrdc_create functions in rrd_client.c
Add rrdcached support to rrd_info(), rrd_first(), rrd_last() and rrd_create()
Add --noflush (-F) option to rrd_info(), rrd_last() to prevent cache flushing before function call if required for efficiency
Add --daemon option to rrd_info(), rrd_first() for rrdcached support
Add buffer_add_ulong function to rrd_client.c (used by new rrdc_* functions)
All relevant documentation updated
Might try to add rrd_tune as well before submitting if all goes well (this will HAVE to flush the data first I think) but now I'm off for a long weekend until Monday!
ITS Unix Services Design Lead
University of Auckland, New Zealand
Floor 1, 58 Symonds Street, Auckland
Phone: +64 (0)9 3737599 ext 86487
DDI: +64 (0)9 924 6487
Mobile: +64 (0)21 753 189
Email: s.shipway at auckland.ac.nz<mailto:s.shipway at auckland.ac.nz>
P Please consider the environment before printing this e-mail
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rrd-developers