I've hacked together a replacement for RRDp, using popen() and "rrdtool -", but it sounds like you've already done that. I found a wrapper at http://www.untz.net/rrdmodule.html but I have not tried it. Case