I have created a RRD: ----------------------------------------------------------------------------------------------------------------------------------------------------------------- rrdtool create /be-fs01a/vol/u3/prog1/rrdtool/share/rrd/tms-tape-$TYPE.rrd --start 1072000000 --step 600 \ DS:work:GAUGE:86400:0:U \ DS:new:GAUGE:86400:0:U \ DS:ok:GAUGE:86400:0:U \ DS:total:GAUGE:86400:0:U \ DS:sumwork:GAUGE:86400:0:U \ DS:sumnew:GAUGE:86400:0:U \ DS:week:GAUGE:86400:0:U \ RRA:AVERAGE:0.5:1:10000 RRA:AVERAGE:0.5:144:1200 RRA:AVERAGE:0.5:1008:120 RRA:LAST:0.5:1:10000 ----------------------------------------------------------------------------------------------------------------------------------------------------------------- and from this I make three graphs, one for last WEEK, one for last MONTH and one for last YEAR. The command who makes these graps are shown below for the week graph. ----------------------------------------------------------------------------------------------------------------------------------------------------------------- /usr/local/bin/rrdtool graph /disk2/apache/htdocs/pngs/tms_P_tape_w.png --start -691200 --end -1 \ -w 550 -h 220 -v Number --title="TMS: Tape-errors" --lower-limit 0 \ DEF:NS=/be-fs01a/vol/u3/prog1/rrdtool/share/rrd/tms-tape-P.rrd:sumnew:AVERAGE \ DEF:ND=/be-fs01a/vol/u3/prog1/rrdtool/share/rrd/tms-tape-P.rrd:new:AVERAGE \ DEF:AS=/be-fs01a/vol/u3/prog1/rrdtool/share/rrd/tms-tape-P.rrd:sumwork:AVERAGE \ DEF:AD=/be-fs01a/vol/u3/prog1/rrdtool/share/rrd/tms-tape-P.rrd:work:AVERAGE \ DEF:OD=/be-fs01a/vol/u3/prog1/rrdtool/share/rrd/tms-tape-P.rrd:ok:AVERAGE \ DEF:WO=/be-fs01a/vol/u3/prog1/rrdtool/share/rrd/tms-tape-P.rrd:week:AVERAGE \ DEF:TT=/be-fs01a/vol/u3/prog1/rrdtool/share/rrd/tms-tape-P.rrd:total:AVERAGE \ AREA:AS#00FF7F:"InWork " "GPRINT:AS:LAST:\: %4.0lf\n" \ STACK:NS#FF6262:"NotTreated " "GPRINT:NS:LAST:\: %4.0lf\n" \ LINE2:AD#32CD32:"New in work " "GPRINT:AD:LAST:\: %4.0lf\n" \ LINE2:ND#FF9F00:"New not treaded " "GPRINT:ND:LAST:\: %4.0lf\n" \ LINE2:OD#0000FF:"Treated and terminated " "GPRINT:OD:LAST:\: %4.0lf\n" \ LINE2:WO#FF00FF:"Older than 1 week " "GPRINT:WO:LAST:\: %4.0lf\n" \ COMMENT:" Graph written: 00:05 11.06.2004" ----------------------------------------------------------------------------------------------------------------------------------------------------------------- The only difference for the month and year are the first line, shown here: ----------------------------------------------------------------------------------------------------------------------------------------------------------------- year: /usr/local/bin/rrdtool graph /disk2/apache/htdocs/pngs/tms_P_tape_y.png --start -31536000 --end -1 \ month: /usr/local/bin/rrdtool graph /disk2/apache/htdocs/pngs/tms_P_tape_m.png --start -2764800 --end -1 \ ----------------------------------------------------------------------------------------------------------------------------------------------------------------- The only difference for the three commands generating the three graph's are the "--start -". The problem is that the GPRINT writes same values for WEEK and MONTH (which was expected) BUTdifferent values for YEAR!!! I thought also YEAR should show the same values as WEEK and MONTH. They all use CF LAST! Can someone help me with this? Attach is the GPRINT part of the three graps: (See attached file: rrd-week.bmp)(See attached file: rrd-month.bmp)(See attached file: rrd-year.bmp) |-----------------------------+-----------------------------------------| | | | | Eivind Birkeland | E-mail: EIBI@statoil.com | | Unix/DBA Manager | Phone: +47 55 14 00 00 / 22 51 | | Statoil Norway | Mobile: +47 907 76 942 | | | | |-----------------------------+-----------------------------------------| ------------------------------------------------------------------- The information contained in this message may be CONFIDENTIAL and is intended for the addressee only. Any unauthorised use, dissemination of the information or copying of this message is prohibited. If you are not the addressee, please notify the sender immediately by return e-mail and delete this message. Thank you. -- Attached file removed by Ecartis and put at URL below -- -- Type: application/octet-stream -- Size: 61k (63422 bytes) -- URL : http://www.ee.ethz.ch/~slist/p/02-rrd-week.bmp -- Attached file removed by Ecartis and put at URL below -- -- Type: application/octet-stream -- Size: 64k (66294 bytes) -- URL : http://www.ee.ethz.ch/~slist/p/02-rrd-month.bmp -- Attached file removed by Ecartis and put at URL below -- -- Type: application/octet-stream -- Size: 55k (57294 bytes) -- URL : http://www.ee.ethz.ch/~slist/p/02-rrd-year.bmp -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi