[rrd-users] little quest

Arias, Sebastian Alejandro - (Ext Arg) Sebastian.Arias at attla.com
Wed Feb 6 21:12:03 MET 2002


Im using RRDTool with Cisco Accounting ... Im collecting data from the total
output packets in an interface and output packets between two host, I create
de rrd DATABASE, and i was make a graphic of this, but the unit that rrd
graph in the png file cant match with the real data, Im using gauge, is it
correct?
 
 
CREATING THE RRD DB
use RRDs;
my $start=time;
$out="./outpkts.rrd";
$select="./selectedpkts.rrd";
 

RRDs::create ($out, "--start",$start-1, "--step",300,
              "DS:op:GAUGE:600:U:U",
              "RRA:AVERAGE:0.5:1:300",
);
 
my $ERROR = RRDs::error;
die "$0: unable to create `$rrd': $ERROR\n" if $ERROR;
 

RRDs::create ($select, "--start",$start-1, "--step",300,
              "DS:sp:GAUGE:600:U:U",
              "RRA:AVERAGE:0.5:1:300",

MAKING THE GRAPH
 
rrdtool graph /var/www/html/traffic/traffic.png --title="IP Accounting" \
        DEF:Ovar=/Cisco/outpkts.rrd:op:AVERAGE \
        DEF:Svar=/Cisco/selectedpkts.rrd:sp:AVERAGE \
        AREA:Ovar#ff0000:"Output Packets" \
        LINE2:Svar#00ff00:"Selected Packets"
 
Thanks a lot
 

_________________________________________<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />

Sebastian Arias

Infraestructure & Technologies

AT&T Latin America, Argentina

Phone: [5411]5288-0173 - Fax: [5411]5288-0408

 
Este mensaje es confidencial. El mismo contiene información reservada 
y que no puede ser difundida. Si usted ha recibido este e-mail 
por error, por favor avísenos inmediatamente vía e-mail y tenga la 
amabilidad de eliminarlo de su sistema; no deberá copiar el mensaje 
ni divulgar su contenido a ninguna persona. Muchas gracias.
 
This message is confidential. It contains information that is privileged and
legally exempt from disclosure. If you have received this e-mail by mistake,

please let us know immediately by e-mail and delete it from your system; 
you should also not copy the message nor disclose its contents to anyone. 
Thank You.


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