Ticket #328 (new enhancement)
Opened 4 months ago
Missing bits in librrd
| Reported by: | human | Owned by: | oetiker |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | misc | Version: | |
| Keywords: | Cc: | ssinyagin@… |
Description
I am working on a new Perl module which will read the whole RRD into memory, allow all modifications, and save a new RRD file to the disk.
It uses librrd for file operations. Here's the summary of missing bits in the librrd and rrd.h public interface:
Source file: http://goo.gl/qUFq8
line 12: instead of deprecating the internals, it will be great to have them as a valid public interface. At the moment the compiler prints the "deprecated" warnings all along the way.
Lines 17-22: rrd_open file mode macros are not available through rrd.h, so I had to redefine them myself.
Line 26: RRD_VERSION3 is defined, but RRD_VERSION4 is not. It will be great to have this too, so that it's easier to refer to the version strings.
Lines 34-54: the procedure for switching between text and numeric CF identifiers is unavailable thriough librrd, so I had to copy it. An analogous procedure for DS types would also be great.
Lines 128-142 and 552-557: If the DS type is COMPUTE, librrd does not expose the conversion functions for RPN definitions. We need a way to convert between binary and string RPN in both directions.
regards, Stanislav Sinyagin


