[rrd-users] Re: I would like graphics in bits.
João Marques
joao at cbpf.br
Thu May 15 15:47:49 MEST 2003
Hello Alberto,
I'm storing the numbers in bytes too, as the MIB gives it.
Then I'm using the following code to generate graphs in bits since 1 byte =
8 bits.
Notice that the CDEF's for max_incoming_kbits and max_outgoing_kbits are in
Kbits (multiply by 8 and divide by 1000)
$command .= "DEF:incoming=$rrdfile:ds0:AVERAGE ";
$command .= "DEF:outgoing=$rrdfile:ds1:AVERAGE ";
$command .= "DEF:max_incoming=$rrdfile:mx0:MAX ";
$command .= "DEF:max_outgoing=$rrdfile:mx1:MAX ";
$command .= "CDEF:incoming_bits=incoming,8,* ";
$command .= "CDEF:outgoing_bits=outgoing,8,* ";
$command .= "CDEF:max_incoming_kbits=max_incoming,8,*,1000,/ ";
$command .= "CDEF:max_outgoing_kbits=max_outgoing,8,*,1000,/ ";
Hope it helps!
PS: Você é de Portugal ? Eu sou do Brasil! Como vão as coisas por ai?
----- Original Message -----
From: "Diaz Freire, Alberto" <adiazf at mundo-R.net>
To: <rrd-users at list.ee.ethz.ch>
Sent: Wednesday, May 14, 2003 4:28 AM
Subject: [rrd-users] I would like graphics in bits.
> > hi,
> > I have installed the RRDTOOL and I am using RDDCGI. The MIB gives to
> > the outbound and inbound traffic in bytes but i would like the graphics
> > and the average, max, etc values were in bits.
> > How I can do it?
> > The code which i use.
> > <RRD::GRAPH
> > /app/iplanet/servers/docs/estadisticas/mrtg/demoing/24horas.gif
> > --start -86400 --vertical-label "Bytes por segundo"
> > --imginfo '<IMG SRC=/mrtg/demoing/%s WIDTH=%lu HEIGHT=%lu >'
> > DEF:entrada=demoing.rrd:ds0:AVERAGE
> > DEF:salida=demoing.rrd:ds1:AVERAGE
> > AREA:entrada#00FF00:"Trafico de entrada\n"
> > LINE1:salida#0000FF:"Trafico de salida \n"
> > GPRINT:entrada:AVERAGE:"Valor Med. Entrada = %lf %sBps
"
> > GPRINT:salida:AVERAGE:"Valor Med. Salida = %lf %sBps\n"
> > greetings
> >
>
> --
> 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
>
--
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