[collectd] Request for help on usage of rrdjig

Ankit . hiiankit at gmail.com
Tue Aug 21 17:41:30 CEST 2012


Hi,

My objective is to change the step-size of the existing RRD Files.

>From the mail chain :
[rrd-users] changing step time?
https://lists.oetiker.ch/pipermail/rrd-users/2010-April/016537.html
I got the link for the rrdjig.

While using the same I got error as "RRD Error: expected 1 data source
readings (got 2) from 1345561230:0:0"

Steps I did:
1. Create a dummy rrd file using command:

rrdtool create /tmp/dummy.rrd --step 60 DS:mem:DERIVE:120:0:NaN
RRA:AVERAGE:0.1:1:1200 RRA:MIN:0.1:1:1200 RRA:MAX:0.1:1:1200
RRA:AVERAGE:0.1:1:1440 RRA:MAX:0.1:1:1440 RRA:MIN:0.1:1:1440
RRA:AVERAGE:0.1:1:1260 RRA:MAX:0.1:1:1260 RRA:MIN:0.1:1:1260
RRA:AVERAGE:0.1:1:1207 RRA:MAX:0.1:1:1207 RRA:MIN:0.1:1:1207
RRA:AVERAGE:0.1:1:1201 RRA:MAX:0.1:1:1201 RRA:MIN:0.1:1:1201

2. Check the info for the source file:
filename = "/tmp/service.rrd"
rrd_version = "0003"
step = 10
last_update = 1345563297
ds[rx].type = "DERIVE"
ds[rx].minimal_heartbeat = 20
ds[rx].min = 0.0000000000e+00
ds[rx].max = NaN
ds[rx].last_ds = "945714"
ds[rx].value = 0.0000000000e+00
ds[rx].unknown_sec = 0
ds[tx].type = "DERIVE"
ds[tx].minimal_heartbeat = 20
ds[tx].min = 0.0000000000e+00
ds[tx].max = NaN
ds[tx].last_ds = "5514618"
ds[tx].value = 0.0000000000e+00
ds[tx].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 1200
rra[0].pdp_per_row = 1
rra[0].xff = 1.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "MIN"
rra[1].rows = 1200
rra[1].pdp_per_row = 1
rra[1].xff = 1.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = NaN
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "MAX"
rra[2].rows = 1200
rra[2].pdp_per_row = 1
rra[2].xff = 1.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = NaN
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 1235
rra[3].pdp_per_row = 7
rra[3].xff = 1.0000000000e-01
rra[3].cdp_prep[0].value = 0.0000000000e+00
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = 0.0000000000e+00
rra[3].cdp_prep[1].unknown_datapoints = 0
rra[4].cf = "MIN"
rra[4].rows = 1235
rra[4].pdp_per_row = 7
rra[4].xff = 1.0000000000e-01
rra[4].cdp_prep[0].value = 0.0000000000e+00
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = 0.0000000000e+00
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 1235
rra[5].pdp_per_row = 7
rra[5].xff = 1.0000000000e-01
rra[5].cdp_prep[0].value = 0.0000000000e+00
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = 0.0000000000e+00
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "AVERAGE"
rra[6].rows = 1210
rra[6].pdp_per_row = 50
rra[6].xff = 1.0000000000e-01
rra[6].cdp_prep[0].value = 0.0000000000e+00
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 0.0000000000e+00
rra[6].cdp_prep[1].unknown_datapoints = 0
rra[7].cf = "MIN"
rra[7].rows = 1210
rra[7].pdp_per_row = 50
rra[7].xff = 1.0000000000e-01
rra[7].cdp_prep[0].value = 0.0000000000e+00
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[7].cdp_prep[1].value = 0.0000000000e+00
rra[7].cdp_prep[1].unknown_datapoints = 0
rra[8].cf = "MAX"
rra[8].rows = 1210
rra[8].pdp_per_row = 50
rra[8].xff = 1.0000000000e-01
rra[8].cdp_prep[0].value = 0.0000000000e+00
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[8].cdp_prep[1].value = 0.0000000000e+00
rra[8].cdp_prep[1].unknown_datapoints = 0
rra[9].cf = "AVERAGE"
rra[9].rows = 1202
rra[9].pdp_per_row = 223
rra[9].xff = 1.0000000000e-01
rra[9].cdp_prep[0].value = 0.0000000000e+00
rra[9].cdp_prep[0].unknown_datapoints = 0
rra[9].cdp_prep[1].value = 0.0000000000e+00
rra[9].cdp_prep[1].unknown_datapoints = 0
rra[10].cf = "MIN"
rra[10].rows = 1202
rra[10].pdp_per_row = 223
rra[10].xff = 1.0000000000e-01
rra[10].cdp_prep[0].value = 0.0000000000e+00
rra[10].cdp_prep[0].unknown_datapoints = 0
rra[10].cdp_prep[1].value = 0.0000000000e+00
rra[10].cdp_prep[1].unknown_datapoints = 0
rra[11].cf = "MAX"
rra[11].rows = 1202
rra[11].pdp_per_row = 223
rra[11].xff = 1.0000000000e-01
rra[11].cdp_prep[0].value = 0.0000000000e+00
rra[11].cdp_prep[0].unknown_datapoints = 0
rra[11].cdp_prep[1].value = 0.0000000000e+00
rra[11].cdp_prep[1].unknown_datapoints = 0
rra[12].cf = "AVERAGE"
rra[12].rows = 1201
rra[12].pdp_per_row = 2635
rra[12].xff = 1.0000000000e-01
rra[12].cdp_prep[0].value = 0.0000000000e+00
rra[12].cdp_prep[0].unknown_datapoints = 0
rra[12].cdp_prep[1].value = 0.0000000000e+00
rra[12].cdp_prep[1].unknown_datapoints = 0
rra[13].cf = "MIN"
rra[13].rows = 1201
rra[13].pdp_per_row = 2635
rra[13].xff = 1.0000000000e-01
rra[13].cdp_prep[0].value = 0.0000000000e+00
rra[13].cdp_prep[0].unknown_datapoints = 0
rra[13].cdp_prep[1].value = 0.0000000000e+00
rra[13].cdp_prep[1].unknown_datapoints = 0
rra[14].cf = "MAX"
rra[14].rows = 1201
rra[14].pdp_per_row = 2635
rra[14].xff = 1.0000000000e-01
rra[14].cdp_prep[0].value = 0.0000000000e+00
rra[14].cdp_prep[0].unknown_datapoints = 0
rra[14].cdp_prep[1].value = 0.0000000000e+00
rra[14].cdp_prep[1].unknown_datapoints = 0

3. Executed the rrdjig utility:
./rrdjig.pl -v /tmp/service.rrd /tmp/dummy.rrd

4. I got the error:
RRD Error: expected 1 data source readings (got 2) from 1345561230:0:0

Can some one please point me to a way in which I can sole this?

Regards,
Ankzz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120821/d667de70/attachment.html>


More information about the collectd mailing list