[rrd-users] Problem: nan, timestamps ans step

Alex van den Bogaerdt alex at ergens.op.het.net
Mon Dec 24 13:42:04 CET 2007


On Mon, Dec 24, 2007 at 12:59:05PM +0100, Lennart Koopmann wrote:

> 
> On Mon, 24 Dec 2007, Alex van den Bogaerdt wrote:
> 
> > Try again, but now using a full path name in every command,
> > or a "cd /var/lib/test/graphs" in front of your script.
> 
> I only use a script for the update of the RRD. The paths are correct, I 
> checked that.

I used cut and paste from your mail, and made a couple of modifications.
* I removed paths, so that the database it created and updated in my $cwd
* I set an end value for the graph command, for easy viewing

The errors are to be expected:
* update at 1198454571 will fail because it describes *before* 1198454571
  but the database starts *at* 1198454571
* "And my script executed this commands:" is an illegal command
* "Now i try to fetch the data:" is an illegal command

The last interval is not yet known, because there was no update at or
after $((1198455291+step-1)/step*step))

$ cat doit
rrdtool create test.rrd --start 1198454571 --step 60 DS:procs:GAUGE:600:0:1000 RRA:AVERAGE:0.5:1:100

And my script executed this commands:

rrdtool update test.rrd 1198454571:257
rrdtool update test.rrd 1198454631:258
rrdtool update test.rrd 1198454691:256
rrdtool update test.rrd 1198454751:255
rrdtool update test.rrd 1198454811:256
rrdtool update test.rrd 1198454871:259
rrdtool update test.rrd 1198454931:258
rrdtool update test.rrd 1198454991:257
rrdtool update test.rrd 1198455051:257
rrdtool update test.rrd 1198455111:255
rrdtool update test.rrd 1198455171:255
rrdtool update test.rrd 1198455231:256
rrdtool update test.rrd 1198455291:256

Now i try to fetch the data:

rrdtool fetch test.rrd --start 1198454571 --end 1198455291 AVERAGE

$ ./doit
./doit: line 3: And: command not found
ERROR: illegal attempt to update using time 1198454571 when last update time is 1198454571 (minimum one second step)
./doit: line 19: Now: command not found
                          procs

1198454580: 2.5800000000e+02
1198454640: 2.5770000000e+02
1198454700: 2.5585000000e+02
1198454760: 2.5515000000e+02
1198454820: 2.5645000000e+02
1198454880: 2.5885000000e+02
1198454940: 2.5785000000e+02
1198455000: 2.5700000000e+02
1198455060: 2.5670000000e+02
1198455120: 2.5500000000e+02
1198455180: 2.5515000000e+02
1198455240: 2.5600000000e+02
1198455300: nan


-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/



More information about the rrd-users mailing list