[rrd-users] Re: cuting peaks ?

Hugo van der Kooij hvdkooij at vanderkooij.org
Fri Jan 9 00:49:03 MET 2004


On Thu, 8 Jan 2004, Alex van den Bogaerdt wrote:

> On Thu, Jan 08, 2004 at 06:59:51PM +0100, Hugo van der Kooij wrote:
>
> > > LIMIT*
> > >
> > >     replaces the value with /*UNKNOWN*/ if it is outside the limits
> > >     specified by the two values above it on the stack.
> > >
> > >  CDEF:a=alpha,0,100,LIMIT
> >
> > It does not kill spikes. It will reduce them just to the maximum allowed.
>
> Actually, it shouldn't (according to the docs).  Did you find a bug or
> are you still suffering from the flu ? :)

Propably both. Took me hours to do some simple tests.

> > I tried both ways but found that with the limit  option the graphs are
> > still inaccurate as they show spikes where there weren't.
>
> 1: are you sure you looked at a, not alpha?
> 2: the spikes are real in the OP case.  He just doesn't want to see them

My spikes are due to bad old Zyxel who could not get the firmware right on
their 645 ADSL router.

Current code:

rrdtool graph $GRAPHS/ADSL-in.$PERIOD.gif --start -$LENGTH              \
        -t "ADSL inkomend verkeer $TITEL"                               \
        --vertical-label bytes/second                                   \
        DEF:value=$STATS/isildur.adsl.rrd:ifInOctets:AVERAGE            \
        CDEF:octets=value,$FULL,GT,nan,value,IF                         \
        CDEF:normal=octets,$BUSY,GT,0,octets,IF                         \
        CDEF:border=octets,$BUSY,GT,$BUSY,0,IF                          \
        CDEF:busy=octets,$BUSY,GT,octets,$BUSY,-,0,IF                   \
        AREA:normal#7EE600:"Normal"                                     \
        AREA:border#7EE600:""                                           \
        STACK:busy#EA8F00:"Busy"                                        \
        GPRINT:octets:AVERAGE:"Gem. \:%5.2lf%sB/s"                      \
        GPRINT:octets:MAX:"Max. \:%5.2lf%sB/s\n"                        \
        COMMENT:"$DATUM\r"

Other test had:

        DEF:value=$STATS/isildur.adsl.rrd:ifInOctets:AVERAGE            \
        CDEF:octets=value,0,$FULL,LIMIT                                 \
        CDEF:normal=octets,$BUSY,GT,0,octets,IF                         \

RRDtool 1.0.42

Perhaps I should try the 1.0.46 from the RPM stove.

Hugo.

-- 
 All email sent to me is bound to the rules described on my homepage.
    hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
	    Don't meddle in the affairs of sysadmins,
	    for they are subtle and quick to anger.

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