Hi, I've been bashing my head against this issue for a while now... time to get some help.
I'm reading data from a database into variables, and then dropping that into the rrd. Graphs aren't working in cacti, which is failing because the rra aggregations are all returning nan. I've worked my way through a whole bunch of stuff to no avail. So... here's
where I'm currently at:
cron runs a script every 5 minutes. This script basically does:
rrdtool updatev /var/www/mrtg/applications/test.rrd N:$rttime >> /var/log/rttime.log 2>&1
(I'm using updatev right now to try and get more information about what's going on).
It puts the data into the rrd, but the rras don't get populated:
filename = "/var/www/mrtg/applications/test.time.rrd"
rrd_version = "0003"
step = 300
last_update = 1502250603
header_size = 4120
ds[rttime].index = 0
ds[rttime].minimal_heartbeat = 600
ds[rttime].min = 0.0000000000e+00
ds[rttime].max = 1.0000000000e+03
ds[rttime].last_ds = "1.4166666666666667
ds[rttime].value = NaN
ds[rttime].unknown_sec = 3
rra.cf = "AVERAGE"
rra.rows = 500
rra.cur_row = 301
rra.pdp_per_row = 1
rra.xff = 5.0000000000e-01
rra.cdp_prep.value = NaN
rra.cdp_prep.unknown_datapoints = 0
valid data in this case is likely to range from 0 - 10, and will be floating point. But the doco says GAUGE should be OK with float?
Now... I have some rrds & accompanying graphs using almost exactly the same process, but where the data returned is always an integer - and they work fine. Maybe this is the problem? I've just modified the script to only return 2dp (in case it was a problem
with too many decimal places…)