[rrd-users] Data Conversion/Issue(s)??
Douglas R. Mauro
doug at mauro.com
Wed Jan 10 18:09:00 MET 2001
Can you tell me why my data looks so funny (wrong) ??
I'm trying to push some data with:
rrdtool update myrouter.rrd N:267821925:20944716
rrdtool update myrouter.rrd N:267821925:20948633
. blah
. blah
.
Note that the numbers are pretty big. Now when I fetch look what I get?
rrdtool fetch /tmp/gg/myrouter.rrd AVERAGE --start -60min
input output
979136700: NaN NaN
979137000: NaN NaN
979137300: 8.8828260870e+02 2.9260869565e+01
979137600: 1.3062894893e+03 5.6148930297e+01
979137900: 7.0555488630e+03 1.6408999114e+02
979138200: 4.6983517132e+03 9.9709547886e+01
979138500: 1.5006727604e+04 1.1251607986e+02
979138800: 3.8324676923e+03 7.0591682692e+01
979139100: 3.8570030476e+03 7.1427047619e+01
979139400: 5.3599769524e+03 9.5546285714e+01
979139700: NaN NaN
979140000: NaN NaN
979140300: NaN NaN
979140600: NaN NaN
These numbers are not even close to what I got before? Am I missing
something?
I can't convert these back to anything close to the original numbers.
Here is a little script I wrote to see if I could at least see some
patterns. This basically uses time and a random number. The graphs for the
random number look random but the time is (for the most part) a horizontal
line??
Heres the script:
while true
do
etime=`perl -e 'print time, "\n" '`
echo "using epoc as :$etime:"
rnum=`perl -e 'print rand(1000), "\n" '`
echo "using rnum as :$rnum:"
echo "rrdtool update db1.rrd N:$etime:$rnum"
rrdtool update db1.rrd N:$etime:$rnum
echo "Fetching"
rrdtool fetch db1.rrd AVERAGE --start -5min
echo "Sleeping for 5"
sleep 5
echo; echo; echo;
done
Here is the output:
using epoc as :979145754:
using rnum as :125.8544921875:
rrdtool update db1.rrd N:979145754:125.8544921875
Fetching
epoch rnum
979145430: 1.0066666667e+00 5.3293185764e+01
979145460: 1.0000000000e+00 7.6229926215e+01
979145490: 1.0000000000e+00 9.4349568685e+01
979145520: 1.0000000000e+00 8.0090196398e+01
979145550: 1.0000000000e+00 6.4478895399e+01
979145580: 1.0000000000e+00 9.1949055990e+01
979145610: 1.0000000000e+00 1.0993591309e+02
979145640: 1.0000000000e+00 7.5236002604e+01
979145670: 1.0000000000e+00 8.6906941732e+01
979145700: 9.9444444444e-01 1.0479109022e+02
979145730: 9.9222222222e-01 1.0253394233e+02
979145760: NaN NaN
Sleeping for 5
using epoc as :979145759:
using rnum as :996.2158203125:
rrdtool update db1.rrd N:979145759:996.2158203125
Fetching
epoch rnum
979145430: 1.0066666667e+00 5.3293185764e+01
979145460: 1.0000000000e+00 7.6229926215e+01
979145490: 1.0000000000e+00 9.4349568685e+01
979145520: 1.0000000000e+00 8.0090196398e+01
979145550: 1.0000000000e+00 6.4478895399e+01
979145580: 1.0000000000e+00 9.1949055990e+01
979145610: 1.0000000000e+00 1.0993591309e+02
979145640: 1.0000000000e+00 7.5236002604e+01
979145670: 1.0000000000e+00 8.6906941732e+01
979145700: 9.9444444444e-01 1.0479109022e+02
979145730: 9.9222222222e-01 1.0253394233e+02
979145760: NaN NaN
Sleeping for 5
Thanks for any help,
Douglas
--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list