[rrd-users] Re: create a RRD with the sum of other RRDs
Warnes, Jason SktnHR
jason.warnes at saskatoonhealthregion.ca
Fri Sep 24 19:09:30 MEST 2004
You should be able to graph your VLAN traffic by creating a virtual data
source with CDEF. For example, lets say that you have these RRD files:
port6.rrd (for port 6)
port7.rrd (for port 7)
port8.rrd (for port 8)
port9.rrd (for port 9)
port10.rrd (for port 10)
port11.rrd (and for port 11)
Your DEF's when graphing probably looks something like this (ignore the MAX
part, you may be using a different consolidation fuction):
DEF:port6_in=port6.rrd:in:MAX
DEF:port7_in=port7.rrd:in:MAX
DEF:port8_in=port8.rrd:in:MAX
DEF:port9_in=port9.rrd:in:MAX
DEF:port10_in=port10.rrd:in:MAX
DEF:port11_in=port11.rrd:in:MAX
Now what you can do is create a virtual data source which sums all the port
"in" stats like this:
CDEF:vlan1_in=port6_in,port7_in,+,port8_in,+,port9_in,+,port10_in,+,port11_i
n,+
Then just graph that CDEF and you're done. The CDEF data source uses
Reverse Polish Notation (RPN) math, so that's why it may look a little
strange.
Hope this helps.
Jason...
-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of rrd at euskal-linux.org
Sent: Friday, September 24, 2004 10:43 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] create a RRD with the sum of other RRDs
Hi!!!
Well i hope i explain correctly.
I have configured a switch with SNMP to get IN and OUT traffic port by
port, so i have a RRD file with IN and OUT for each switch port (in this
case 48 ports = 48 RRD files).
Well, all this works OK.,.... but what i need is to see all the traffic
of the VLANs.
I explain......
I have one VLAN called VLAN1 with the ports 6,7,8,9,10 and 11, so i
want to create a RRD file with the traffic of that VLAN, the sum of
the traffic of ports 6,7,8,9,10 and 10.
An example:
traffic (in bytes):
port 6 = 100
port 7 = 200
port 8 = 50
port 9 = 300
port 10 = 50
port 11 = 100
VLAN1 = 800
How can i create (automatically or via perl script) a RRD file with the
VLAN1 traffic???
Thanks in advance.....
--
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