[rrd-users] Fw: rrd 1.2.15 stores UNKNOWN as zero

Wilfred van der Deijl wilfred at vanderdeijl.com
Fri Aug 4 12:20:27 MEST 2006


Hi all,
I've also posted this at July 24 but nobody responded. I'm giving it one more try and won't bother you again with this. I feel this is a bug in RRD that should be fixed in a future release, but who am I?   ;-)

Just want to report it and leave it up to you to decide if this is a bug and needs to be fixed.

I myself have worked around the issue to have my probe always supply "real" timestamps and no longer use the magic N-stamp.

It seems that my 1.2.15 version of RRD stores UNKNOWN values as zero when the rrdupdate is done with timestamp N and not a hard timestamp.

Steps to reproduce (some output removed to keep it short):

D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool create seconds.rrd --start 1153730000 --step 10 DS:rh5:GAUGE:30:U:U RRA:AVERAGE:0.5:2:10000 RRA:AVERAGE:0.5:20:10000 RRA:AVERAGE:0.5:1200:10000

:: store one minute of data with "hard" times. notice all values are 15 or U
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730005:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730010:U
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730015:U
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730020:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730025:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730030:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730035:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730040:U
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730045:U
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730050:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730055:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd 1153730060:15

:: store one minute of data with N times. notice all values are 15 or U again
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:15
:: sleep 5 seconds
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:U
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:U
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:U
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:U
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>ping 127.0.0.1 -n 5
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool update seconds.rrd N:15

:: fetch data stored with absolute times
:: no problem here. Unknown values are ignored and average is still 15
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool fetch seconds.rrd AVERAGE --start 1153730000 --end 1153730070
                            rh5
1153730020: 1.5000000000e+01
1153730040: 1.5000000000e+01
1153730060: 1.5000000000e+01
1153730080: nan

:: fetch data stored with N-times
:: notice the averages are too low.
D:\install\development\RRDTool v1.2.15\rrdtool-1.2.15-cygwin-1.5.20>rrdtool fetch seconds.rrd AVERAGE --start -70
                            rh5
1153741040: nan
1153741060: nan
1153741080: 1.3449607709e+01
1153741100: 1.4747995162e+01
1153741120: nan


I've now changed my setup to first calculate the current data and use that in the rrdtool update. But shouldn't N also work and ignore unknown values?
--
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