[rrd-users] Re: Sample resolution when graphing, unable to get better than 2hrs RRA problem?

Clifton Royston cliftonr at lava.net
Fri Dec 1 20:16:14 MET 2000


On Fri, Dec 01, 2000 at 06:12:12PM +0100, Bjorn Djupvik wrote:
> 
> 
> Hi! I am using Cricket in conjunction with a homemade cgi to generate
> different types of graphs from my data. The data is collected from a
> router every 5 minutes. The problem is that when I use "rrdtool
> graph" to generate graphs from the cricket-made .rrd I only get one
> sample every 2 hours in the graph and this looks very ugly, I would
> like to get 5 or 10 minute samples.

If you use the Cricket default RRD definition, it only consolidates the
"Max" RRA on 2 hour intervals, and it consolidates the "Average" RRAs
onto 1/2 hour intervals after about 48 hours, and 2 hour intervals for
anything over about 10 days ago (that being similar to MRTG.)

If you will want to graph on finer resolution for any interval starting
longer ago than about 48 hours, you will need to modify the Cricket RRD
definition in its root Defaults file, and either retune or delete and
recreate your current RRDs.  I think it should not affect the behavior
of Cricket, though I haven't tried it.

If you're experiencing this for graphs within the last 48 hours, which
I couldn't quite figure out from your command line, then something else
is wrong and you should ignore these comments. :-)

  -- Clifton

> The command line I use to
> generate the graph looks something like this:
> 
> rrdtool graph outputfile.gif --vertical-label 'bits/second' --title 'Traffic analysis' 'DEF:A=test.rrd:ds0:AVERAGE'
> 'DEF:B=test.rrd:ds1:AVERAGE' 'CDEF:C=A,32,*' 'CDEF:D=B,32,*' 'CDEF:E=C,3500000,GT,C,UNKN,IF'
> 'CDEF:F=D,3500000,GT,D,UNKN,IF' 'CDEF:G=D,12000000,0,IF' 'LINE2:C#4169E1:Incoming traffic' 'GPRINT:C:MIN:(minimum=%.0lf'
> 'GPRINT:C:AVERAGE:average=%.0lf' 'GPRINT:C:MAX:maximum=%.0lf)' 'COMMENT:\\n' 'LINE2:D#8FBC8F:Ou
> tgoing traffic' 'GPRINT:D:MIN:(minimum=%.0lf' 'GPRINT:D:AVERAGE:average=%.0lf' 'GPRINT:D:MAX:maximum=%.0lf)' 'COMMENT:\\n'
> 'LINE3:G#
> FF0000:Excess traffic threshold' -w 800 -h 400 -l 5000000 >/dev/null";

-- 
 Clifton Royston  --  LavaNet Systems Architect --  cliftonr at lava.net
      The named which can be named is not the Eternal named.


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