<div dir="ltr">I have noticed that rrdtool dump/fetch commands sometimes populate values as NaN even if I have written updates several times to rrd (with different timestamps).<div><br></div><div>"lastupdate" command shows that value was successfully written, but whats preventing it from being displayed?</div>
<div><br></div><div>Please note, that I put single values into rrd few times a day, but the resolution is 600 seconds. So most of the values will be NaN, but why I get NaN for periods with updated values?</div><div><br></div>
<div>here is the output:</div><div><div># rrdtool lastupdate testrrd.rrd </div><div>1383560879: 800.1103515625</div></div><div><br></div><div><div># rrdtool fetch testrrd.rrd AVERAGE --start 1383559800 --end 1383565200</div>
<div>1383560400: -nan</div><div>1383561000: -nan</div><div>1383561600: -nan</div><div>1383562200: -nan</div><div>1383562800: -nan</div><div>1383563400: -nan</div><div>1383564000: -nan</div><div>1383564600: -nan</div><div>
1383565200: -nan</div><div>1383565800: -nan</div></div><div><br></div><div><div># rrdtool info testrrd.rrd </div><div>filename = "testrrd.rrd"</div><div>rrd_version = "0003"</div>
<div>step = 600</div><div>last_update = 1383560879</div><div>header_size = 792</div><div>ds[testrrd].index = 0</div><div>ds[testrrd].type = "GAUGE"</div><div>ds[testrrd].minimal_heartbeat = 86400</div><div>ds[testrrd].min = NaN</div>
<div>ds[testrrd].max = NaN</div><div>ds[testrrd].last_ds = "800.1103515625"</div><div>ds[testrrd].value = 1.0164953906e+05</div><div>ds[testrrd].unknown_sec = 0</div><div>rra[0].cf = "AVERAGE"</div><div>
rra[0].rows = 1095</div><div>rra[0].cur_row = 1009</div><div>rra[0].pdp_per_row = 144</div><div>rra[0].xff = 5.0000000000e-01</div><div>rra[0].cdp_prep[0].value = 4.6826486719e+04</div><div>rra[0].cdp_prep[0].unknown_datapoints = 0</div>
<div>rra[1].cf = "AVERAGE"</div><div>rra[1].rows = 1152</div><div>rra[1].cur_row = 1014</div><div>rra[1].pdp_per_row = 1</div><div>rra[1].xff = 5.0000000000e-01</div><div>rra[1].cdp_prep[0].value = NaN</div><div>
rra[1].cdp_prep[0].unknown_datapoints = 0</div></div></div>