[rrd-users] rrd_update_r() error : expected timestamp not found in data source from update

Athanasios Silis athanasios.silis at gmail.com
Mon Dec 21 07:02:17 CET 2015


Hello there,
I am trying to use rrd_update_r() to update a rrdb through a c++ program.
So I am generating the argc/argv on the fly to pass into the function.

The originating string is the following:

        time_t tm = time(NULL);
        stringstream ss;
        ss << tm;
        string updstr = string("update sensors.rrd \
                --template CO2unf:CO2fil:O2pp:O2pct:O2temp:O2pres ")\
                + ss.str() + string(":1015:1000:123:20.63:38.48:987");

I get this error  from rrd_get_error():
sensors.rrd: expected timestamp not found in data source from update

Is timestamp not accepted in seconds from EPOCH?

Thank you in advance for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20151221/4d00168c/attachment.html>


More information about the rrd-users mailing list