Re: [PATCH] Add create and info to rrdupdate
Tobias Oetiker <[email protected]> Mon, 13 Aug 2012 16:04:23 +0200 (CEST)
| Newsgroups | gmane.comp.db.rrdtool.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Sven, Friday Sven-Göran Bergh wrote: > Dear List, > > > we have the need to incorporate generation/updates of RRD files in > an embedded environment. However, there are a few dependencies that > ruin our plan, most notably libxml2 and libglib. Even a minimal > build (--disable-*) still has these dependencies. > > > What we need is just to create and update RRDs. All graphing is > interactive and handled in the web GUI. I have also seen similar > needs expressed regarding restricted environments. The rrdupdate > standalone utility is a good start, but it lacks the ability to > create RRDs. > > > The proposed patch (attached) adds two features to rrdupdate: > info and create. This is done by invoking the binary with different > names (ala BusyBox). For this, two symbolic links, rrdcreate and > rrdinfo, are used. The size of a stripped rrdupdate is increased > from 80kB to 88kB (libc on i386), but that is a small sacrifice > compared with rrdtool + dependencies (minimal build >2.0MB). > > > My auto[voodoo] skills are limited and so is my insight in the > rrdtool code, so any comments are most welcome. the patch looks fine ... I have added it to trunk and the 1.4 branch r2300 cheers tobi > > > Brgds > /S-G > -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900 _______________________________________________ rrd-developers mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers