[rrd-developers] [PATCH] Add create and info to rrdupdate

Sven-Göran Bergh svengbergh-rrdtool at yahoo.com
Fri Aug 10 20:46:06 CEST 2012

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20120810/6c4981f0/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rrdupdate-with-create-info.patch
Type: application/octet-stream
Size: 2845 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20120810/6c4981f0/attachment-0001.obj 

More information about the rrd-developers mailing list