[rrd-users] rrd updates give NaN
Tony Howat
arhowat at hotmail.com
Mon Jul 31 16:23:50 MEST 2006
I'm having trouble updating using rrdtool 1.2.13 - i'm doing updates but
all I get is NaNs in the table...
At Mon Jul 31 14:54:34 BST 2006:
/usr/local/bin/rrdtool create /usr/local/var/rrd/ast_total.rrd --start N
--step 60 DS:calls:GAUGE:60:U:U DS:seconds:GAUGE:60:U:U RRA:MIN:0.5:60:10080
RRA:MAX:0.5:60:10080 RRA:AVERAGE:0.5:1:10080
At Mon Jul 31 14:54:34 BST 2006:
/usr/local/bin/rrdtool update /usr/local/var/rrd/ast_total.rrd N:2:7
At Mon Jul 31 14:55:34 BST 2006
Executing /usr/local/bin/rrdtool update /usr/local/var/rrd/ast_total.rrd
N:3:9
....yet no data appears in the rrd DB.
/usr/local/bin/rrdtool fetch /usr/local/var/rrd/ast_total.rrd AVERAGE | more
calls seconds
1154268000: nan nan
1154268060: nan nan
1154268120: nan nan
1154268180: nan nan
1154268240: nan nan
etc. etc.
/usr/local/bin/rrdtool info /usr/local/var/rrd/ast_total.rrd
filename = "/usr/local/var/rrd/ast_total.rrd"
rrd_version = "0003"
step = 60
last_update = 1154354434
ds[calls].type = "GAUGE"
ds[calls].minimal_heartbeat = 60
ds[calls].min = NaN
ds[calls].max = NaN
ds[calls].last_ds = "UNKN"
ds[calls].value = NaN
ds[calls].unknown_sec = 34
ds[seconds].type = "GAUGE"
ds[seconds].minimal_heartbeat = 60
ds[seconds].min = NaN
ds[seconds].max = NaN
ds[seconds].last_ds = "UNKN"
ds[seconds].value = NaN
ds[seconds].unknown_sec = 34
rra[0].cf = "MIN"
rra[0].rows = 10080
rra[0].pdp_per_row = 60
rra[0].xff = 5.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 = "MAX"
rra[1].rows = 10080
rra[1].pdp_per_row = 60
rra[1].xff = 5.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 = "AVERAGE"
rra[2].rows = 10080
rra[2].pdp_per_row = 1
rra[2].xff = 5.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
This code runs the updates from system() commands in perl. These are
executed in a thread that sleeps, then does the updates, then sleeps
another 30s. strace -f does show rrdtool running and apparently updating
the file.
I've used these same commands with previous rrd versions outside of the
perl environment I describe above. I don't see what
the issue is. Problem appears to be with the updates, which will sometimes
work if I execute from a CLI prompt - reason could be timing, but I'm
running at the right interval (every 60s)?
Am I missing something here?
All help and suggestions appreciated...
--
Tony
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the rrd-users
mailing list