[rrd-users] something missing ..
raptor
raptor at tvskat.net
Wed Jul 16 11:09:02 MEST 2003
i'm trying to understand rrdtool, but something is missing from the picture what could be the problem.. below is a simple session of mine ..
"gen" is a simple script with wich i use to automate sample generation (see below for details)..
U see on fetch I get annoying results that has nothing to do with data entered...?!? why ?
The other interesting thing is that I generate the data in steps of 300sec, but on fetch i get step 1800sec ?! which probably is the second RRA 6 samples averaged.., doesnt seem to me like average in fetch !? but how I can get COUNTER data itself ?!
(I tried and set "gen" step to 1800, but again nothing, even worse ?, i know i should use step 300 just was curious)
================the session===============================
$ rrdtool create test.rrd --start 1058344000 --step 300 DS:test:COUNTER:600:0:U RRA:AVERAGE:0.5:1:24 RRA:AVERAGE:0.5:6:10
$ ./gen 1058344000
rrdtool update test.rrd 1058344300:87
rrdtool update test.rrd 1058344600:96
rrdtool update test.rrd 1058344900:46
rrdtool update test.rrd 1058345200:51
rrdtool update test.rrd 1058345500:48
rrdtool update test.rrd 1058345800:91
rrdtool update test.rrd 1058346100:50
rrdtool update test.rrd 1058346400:33
rrdtool update test.rrd 1058346700:66
rrdtool update test.rrd 1058347000:97
rrdtool update test.rrd 1058347300:62
rrdtool update test.rrd 1058347600:51
rrdtool update test.rrd 1058347900:21
rrdtool update test.rrd 1058348200:65
rrdtool update test.rrd 1058348500:17
rrdtool update test.rrd 1058348800:97
rrdtool update test.rrd 1058349100:71
rrdtool update test.rrd 1058349400:92
rrdtool update test.rrd 1058349700:54
rrdtool update test.rrd 1058350000:61
rrdtool update test.rrd 1058350300:9
rrdtool update test.rrd 1058350600:23
rrdtool update test.rrd 1058350900:4
rrdtool update test.rrd 1058351200:70
rrdtool update test.rrd 1058351500:64
rrdtool update test.rrd 1058351800:81
rrdtool update test.rrd 1058352100:1
rrdtool update test.rrd 1058352400:24
rrdtool update test.rrd 1058352700:62
rrdtool update test.rrd 1058353000:25
raptor at bugs rrd $ rrdtool fetch test.rrd AVERAGE -s 1058344000
test
1058342400: nan
1058344200: nan
1058346000: 6.3629145013e+06
===============the script==========================
#!/usr/bin/perl
unless ($ARGV[0]) { print "no time specified\n"; exit }
for my $i ( 1 .. 30 ) {
my $t= $ARGV[0] + (300 * $i);
my $r = int(rand(100));
my $cmd = qq{rrdtool update test.rrd $t:$r};
print "$cmd\n";
qx{$cmd};
}r
--
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