[rrd-users] I need help to create a specific rrd file (LONG EMAIL)

Iñaki Martínez sistema at euskal-linux.org
Thu May 29 12:12:41 MEST 2003


Hi!!!!

 Well i have been trying to create a rrd file as i want but i think it is not
correct. I did ask some time ago but i need ask again and i hope it is last.

 I want to store data for 5 years or more, but 5 years are enough.....

 I also want to do the following graphs (i already have the scripts):

-------------------------------------------------------------------------------

 * Hourly graph:

   rrdtool graph file.png --start XXX-2h --end XXX --height 150 --width 395 -x MINUTE:60:HOUR:1:HOUR:1:0:%H:%M

  NOTE: XXX can be any hour from the five year data, so i can view any hour of
any day of any week of any month of any year of the five years in the rrdtool 
file.

 Example (last hour): 
   rrdtool graph file.png --start now-2h --end now --height 150 --width 395 -x MINUTE:60:HOUR:1:HOUR:1:0:%H:%M


-------------------------------------------------------------------------------

 * Dayly graph:

   rrdtool graph file.png --start XXX-27h --end XXX --height 150 --width 395 -x MINUTE:60:HOUR:1:HOUR:1:0:%k

  NOTE: XXX can be any day from the five year data, so i can view any day of 
any week of any month of any year of the five years in the rrdtool file.

 Example (last day): 
   rrdtool graph file.png --start now-27h --end now --height 150 --width 395 -x MINUTE:60:HOUR:1:HOUR:1:0:%k


--------------------------------------------------------------------------------

 * Weekly Graph:

   rrdtool graph file.png --start XXX-1w-1d --end XXX --height 150 --width 395 -x HOUR:12:DAY:1:DAY:1:86400:%a

  NOTE: XXX can be any week from the five year data, so i can view any week 
of any month of any year of the five years in the rrdtool file.

  NOTE_2: -1w-1d is the same that -8d, i suppose!!!


 Example (last week): 
   rrdtool graph file.png --start now-1w-1d --end now --height 150 --width 395 -x HOUR:12:DAY:1:DAY:1:86400:%a

--------------------------------------------------------------------------------

 * Monthly Graph:

   rrdtool graph file.png --start XXX-1m-1d --end XXX --height 150 --width 395 -x DAY:1:WEEK:1:WEEK:1:604800:%b:%W

  NOTE: XXX can be any hour from the five year data, so i can view any month
of any year of the five years in the rrdtool file.

  NOTE_2: -1m-1d is more correct than -32d, i suppose!!!


 Example (last month): 
   rrdtool graph file.png --start now-1m-1d --end now --height 150 --width 395 -x DAY:1:WEEK:1:WEEK:1:604800:%b:%W

--------------------------------------------------------------------------------

 * Yearly Graph:

   rrdtool graph file.png --start XXX-1y-1m --end XXX --height 150 --width 395

  NOTE: XXX can be any hour from the five year data, so i can view any year
of the five years in the rrdtool file.

  NOTE_2: -1y-1m is more correct than -13m, i suppose!!!


 Example (last year): 
   rrdtool graph file.png --start now-1y-1m --end now --height 150 --width 395

--------------------------------------------------------------------------------

 * 2 Years Graph

   rrdtool graph file.png --start XXX-2y-1m --end XXX --height 150 --width 790                                     

  NOTE: XXX can be any hour from the five year data, so i can view any 2
years of the five years in the rrdtool file.

  NOTE_2: -2y-1d is more correct than -25m, i suppose!!!


 Example (last 2 years): 
   rrdtool graph file.png --start now-2y-1m --end now --height 150 --width 790

--------------------------------------------------------------------------------

 * Creation of rrd files:

  rrdtool create file.rdd --start DATE --step 60 \

DS:in:DERIVE:600:0:4294967295 \
DS:out:DERIVE:600:0:4294967295 \ 

RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:3725 \
RRA:MAX:0.5:1:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:3725 \

 NOTE: DATE is the date of start of data, really "--start DATE" is not used.

 NOTE_2: DS lines change depending of the data type stored, interfaces, ram,
         processes, so on. in this example is interfaces.


--------------------------------------------------------------------------------

 * Update:

 I update the rrd file EACH MINUTE!!!

 rrdtool update file.rrd N:value1:value2


--------------------------------------------------------------------------------

 Questions:

 1) Is all correct????

 2) can some point be improved????

 3) the RRA lines are optimal????

 4) really five years stored????


--------------------------------------------------------------------------------

 Any help, tip, doc, mini-howto, howto.... will be apreciated......


 Thanks in advance.....

--
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