[rrd-users] R: Re: Add output from different interfaces into one DS

Simone Felici - Alpikom Spa s.felici at alpikom.it
Wed Jan 14 10:16:31 MET 2004


REALLY thank's for the answer but this isn't what I need or better I would
know HOW I can do it. Maybe at the end if it's really better create one RRD
for each interface and I'll do it. I haven't problems to collet informations
for ONE interface and create a graph. My problem is to collect incoming
traffic from many interfaces (more or less 150 interfaces) via SNMP on a
Cisco device (Also SNMP COUNTER32) and store these informations into ONE DS.

Via SNMP I get 150 values -incoming traffic- of 150 interfaces (the same for
the outgoing traffic) and I would create only ONE RRD-File with only TWO DS
containing each the SUM of the incoming and outgoing traffic. I need to
create a graph showing me the TOTAL traffic of all lines.


Can I collect the informations into one DS type COUNTER?
But if I sum all values I've taken via SNMP the result is higher than the
32bit COUNTER and also how will interpret RRD-Tool the input? Maybe in a
COUTER64bit? But It isn't!  @_@ This is an example of ONE VALUE of the 150
interfaces taken via SNMP:
.iso.org.dod.internet.private.enterprises. =
Counter32: 1424900591 I've to add the remaining interfaces too and store
into one DS in rrd file.

Any suggestion?




> -----Messaggio originale-----
> Da: rrd-users-bounce at list.ee.ethz.ch
> [mailto:rrd-users-bounce at list.ee.ethz.ch] Per conto di mrugan
> Inviato: martedì 13 gennaio 2004 18.27
> A: rrd-users at list.ee.ethz.ch
> Oggetto: [rrd-users] Re: Add output from different interfaces 
> into one DS


> this is my first attempt to write a "how-to like reply"; so
> if i am wrong in some parts, please advise;
> http://martybugs.net/linux/rrdtool/traffic.cgi
> consider reading one more time (why ... u'll figure it out)
> the part which explains the usage of a DERIVE DataSource 
> instead of a COUNTER against the rrdtool manual. [helps a lot 
> creating both DERIVE/COUNTER to see the graphic result ... 
> which is amazing ... large spikes against the 0(zero)]
> ... while creating the RRAs i've find a way of asking me,
> myself and i that would be very helpfull... here is the 
> algorithm: Q1. how often i am going to collect [A: 5 
> minutes=300seconds] Q2. amount of data that can be Unknown 
> (%) = 50% => xff=0.5 [often used] Q3. i would like to store 
> data over a day: 1 day = 24h x 3600 seconds; improper said: 
> what should be the resolution of graphic: every 5 minutes 
> (300 seconds) ========= every 300 seconds,  1 read is 
> averaged into 1 ConsolidatedDataPoint (CDP); (24 X 3600)/300 
> = number of rows to be stored [A:  288] ........
> month:
> resolution would be at 1 h; data gathered over 1 hour -> 
> averaged -> 1CDP; 1 hour=3600 seconds; how many reads: 
> 3600/300 = 12; [12 PDP->1CDP]; one month=31 days; = 
> 31x24hours; = 31x24x3600 seconds; how many times "3600" 
> seconds fit in one day? A: 31x24 so i am going to store 744 
> rows of CDP;
> RRA:AVERAGE:0.5:1:288
> RRA:AVERAGE:0.5:12:744
> also store MAX, MIN, RRAs over a period.
> raptor <raptor at tvskat.net> : [rrd-users] setting correct RRA
> step,rows is a nice post that u should consider if u want to 
> be accurate.
> summing all up;
> 1. every interface has 2 DS: interface_in; interface_out;
> setting up 150 x 2 DS in one rrd database ... i would not do 
> it ...  if u r wrong at some point ... lots of data collected 
> are to be lost; few of us got the perl-xml-guru thing / while 
> rrdtool fetch information | perl thing to set back some 
> values in a new database; setting up 150 files(rrd) has some
> work-around: can be automated via perl;
> 2. CDEF your data:
> A. bits to bytes;
> CDEF:bytes=bits,10,*
> B. negative data to compare in-out;
> out should be on the negative side; so multiply with -1 to 
> get the negative number to be plotted:
> CDEF:negative=out,-1,*
> that's about it.

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