


     RRRRRRRRDDDDGGGGRRRRAAAAPPPPHHHH____DDDDAAAATTTTAAAA((((1111))))       1111....2222....11113333 ((((2222000000006666----00005555----00004444))))       RRRRRRRRDDDDGGGGRRRRAAAAPPPPHHHH____DDDDAAAATTTTAAAA((((1111))))



     NNNNAAAAMMMMEEEE
          rrdgraph_data - preparing data for graphing in rrdtool graph

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          DDDDEEEEFFFF::::<_v_n_a_m_e>=<_r_r_d_f_i_l_e>:<_d_s-
          _n_a_m_e>:<_C_F>[:step=<_s_t_e_p>][:start=<_t_i_m_e>][:end=<_t_i_m_e>][:reduce=<_CCCC_FFFF>]

          VVVVDDDDEEEEFFFF:_v_n_a_m_e=_R_P_N _e_x_p_r_e_s_s_i_o_n

          CCCCDDDDEEEEFFFF:_v_n_a_m_e=_R_P_N _e_x_p_r_e_s_s_i_o_n

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          These three instructions extract data values out of the RRRRRRRRDDDD
          files, optionally altering them (think, for example, of a
          bytes to bits conversion). If so desired, you can also
          define variables containing useful information such as
          maximum, minimum etcetera. Two of the instructions use a
          language called RRRRPPPPNNNN which is described in its own manual
          page.

          Variable names (_v_n_a_m_e) must be made up strings of the
          following characters "A-Z, a-z, 0-9, -,_" and a maximum
          length of 255 characters.

     DDDDEEEEFFFF
          DDDDEEEEFFFF::::<_v_n_a_m_e>=<_r_r_d_f_i_l_e>:<_d_s-
          _n_a_m_e>:<_C_F>[:step=<_s_t_e_p>][:start=<_t_i_m_e>][:end=<_t_i_m_e>][:reduce=<_CCCC_FFFF>]

          This command fetches data from an RRRRRRRRDDDD file.  The virtual
          name _v_n_a_m_e can then be used throughout the rest of the
          script. By default, an RRRRRRRRAAAA which contains the correct
          consolidated data at an appropriate resolution will be
          chosen.  The resolution can be overridden with the --step
          option.  The resolution can again be overridden by
          specifying the sssstttteeeepppp ssssiiiizzzzeeee.  The time span of this data is the
          same as for the graph by default, you can override this by
          specifying ssssttttaaaarrrrtttt aaaannnndddd eeeennnndddd.  Remember to escape colons in the
          time specification!

          If the resolution of the data is higher than the resolution
          of the graph, the data will be further consolidated. This
          may result in a graph that spans slightly more time than
          requested.  Ideally each point in the graph should
          correspond with one CCCCDDDDPPPP from an RRRRRRRRAAAA.  For instance, if your
          RRRRRRRRDDDD has an RRRRRRRRAAAA with a resolution of 1800 seconds per CCCCDDDDPPPP,
          you should create an image with width 400 and time span
          400*1800 seconds (use appropriate start and end times, such
          as "--start end-8days8hours").

          If consolidation needs to be done, the CCCCFFFF of the RRRRRRRRAAAA
          specified in the DDDDEEEEFFFF itself will be used to reduce the data
          density. This behaviour can be changed using ":reduce=<CF>".



     Page 1                                          (printed 6/13/06)






     RRRRRRRRDDDDGGGGRRRRAAAAPPPPHHHH____DDDDAAAATTTTAAAA((((1111))))       1111....2222....11113333 ((((2222000000006666----00005555----00004444))))       RRRRRRRRDDDDGGGGRRRRAAAAPPPPHHHH____DDDDAAAATTTTAAAA((((1111))))



          This optional parameter specifies the CCCCFFFF to use during the
          data reduction phase.

          Example:

                  DEF:ds0=router.rrd:ds0:AVERAGE
                  DEF:ds0weekly=router.rrd:ds0:AVERAGE:step=7200
                  DEF:ds0weekly=router.rrd:ds0:AVERAGE:start=end-1h
                  DEF:ds0weekly=router.rrd:ds0:AVERAGE:start=11\:00:end=start+1h

     VVVVDDDDEEEEFFFF
          VVVVDDDDEEEEFFFF:_v_n_a_m_e=_R_P_N _e_x_p_r_e_s_s_i_o_n

          This command returns a value and/or a time according to the
          RRRRPPPPNNNN statements used. The resulting _v_n_a_m_e will, depending on
          the functions used, have a value and a time component.  When
          you use this _v_n_a_m_e in another RRRRPPPPNNNN expression, you are
          effectively inserting its value just as if you had put a
          number at that place.  The variable can also be used in the
          various graph and print elements.

          Example: "VDEF:avg=mydata,AVERAGE"

          Note that currently only agregation functions work in VDEF
          rpn expressions.  Patches to change this are welcome.

     CCCCDDDDEEEEFFFF
          CCCCDDDDEEEEFFFF:_v_n_a_m_e=_R_P_N _e_x_p_r_e_s_s_i_o_n

          This command creates a new set of data points (in memory
          only, not in the RRRRRRRRDDDD file) out of one or more other data
          series. The RRRRPPPPNNNN instructions are used to evaluate a
          mathematical function on each data point. The resulting
          _v_n_a_m_e can then be used further on in the script, just as if
          it were generated by a DDDDEEEEFFFF instruction.

          Example: "CDEF:mydatabits=mydata,8,*"

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          rrdgraph gives an overview of how rrrrrrrrddddttttoooooooollll ggggrrrraaaapppphhhh works.
          rrdgraph_data describes DDDDEEEEFFFF,CCCCDDDDEEEEFFFF and VVVVDDDDEEEEFFFF in detail.
          rrdgraph_rpn describes the RRRRPPPPNNNN language used in the ????DDDDEEEEFFFF
          statements.  rrdgraph_graph page describes all of the graph
          and print functions.

          Make sure to read rrdgraph_examples for tips&tricks.

     AAAAUUUUTTTTHHHHOOOORRRR
          Program by Tobias Oetiker <tobi@oetiker.ch>

          This manual page by Alex van den Bogaerdt
          <alex@ergens.op.het.net>







