[rrd-users] rrdcached communication via socket.

Steve Shipway s.shipway at auckland.ac.nz
Thu Jul 19 00:16:23 CEST 2012

> queue_thread_main: rrd_update_r (...file.rrd) failed with status -1.
> (...file.rrd: expected 4 data source readings (got 2))

This would seem to indicate that the RRD file you have created, /tmp/test.rrd, does not match the format that you are using to write, "N:123:123"

You are writing "N:123:123" which means that the destination RRD MUST have 2 and only 2 DS defined.

The error message, " expected 4 data source readings (got 2)" would seem to indicate that test.rrd has in fact 4 DS defined and so the update fails.

Check that test.rrd is created correctly, and has a structure corresponding to the rrdupdate you are using.

Unfortunately, rrdcached makes no verification of structure until the data is written.  This might be a failure on the part of rrdcached -- maybe it should also check/remember the number of DS in a RRD and return a fail if someone tries to queue a non-matching dataset?


Steve Shipway
ITS Unix Services Design Lead
University of Auckland, New Zealand
Floor 1, 58 Symonds Street, Auckland
Phone: +64 (0)9 3737599 ext 86487
DDI: +64 (0)9 924 6487
Mobile: +64 (0)21 753 189
Email: s.shipway at auckland.ac.nz
 Please consider the environment before printing this e-mail 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6080 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20120718/d591ca77/attachment.bin 

More information about the rrd-users mailing list