Hello. The tool works great, but I have a time-Problem. I want to write one value per day (midnight) to the database.
---------------------------------This is my perl-programm to generate the rrd-file--------------- #! /usr/bin/perl #makes things work when run without install use lib qw( ../perl-shared/blib/lib ../perl-shared/blib/arch ); # this is for after install use lib qw( /usr/local/rrdtool-1.0.33/lib/perl ../lib/perl ); use RRDs; use Time::Local; ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); $year=$year+1900; $today=timelocal(0,0,0,$mday,$mon,$year); # subtracting the value of 370 days in seconds from today $start=$today-(370*24*60*60); $rrd=$ARGV[0]; RRDs::create ($rrd, "--start",$start,"--step",86400, "DS:peak:GAUGE:86400:U:U", "RRA:MAX:0:1:380", ); my $ERROR = RRDs::error; die "$0: unable to create `$rrd': $ERROR\n" if $ERROR; -------------------------------------END OF the PERL prog----------------------- With the following command I retrieve data from the rrd-file rrdtool fetch test.rrd --start 965167200 MAX 965167200 is 08/02/2000 00:00:00 and I get the following lines: 965088000: nan 965174400: nan 965260800: nan 965347200: nan 965433600: nan 965520000: nan 965606400: nan 965692800: nan 965779200: nan 965088000 is 08/01/2000 02:00:00 Why does the data-intervalls are at 02:00 and not at 00:00 ?? best regaards Bernhard Zebedin -------------------------------------------------------------------- Bernhard Zebedin Infineon Technologies Microelectronic Design Centers Austria GmbH Design Center Villach Siemensstrasse 2, A-9500 Villach Tel. ++43 4242 305 6197 Fax ++43 4242 305 6389 mailto:[EMAIL PROTECTED] internet: http://www.infineon.com/ -------------------------------------------------------------------- -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi