Hello,
I would like to sum different data sources to graph them in the following format:
total rx and total tx
I've got the following graph items inputs:
Data source [rxhttp]
Data source [rxicmp]
Data source [rxother]
....
Data source [txhttp]
Data source [txicmp]
Data source [rxother]
....
I'm currently graphing a line using FFFFFF color in my graph templates items per data source so i can get the following DEF:
DEF:a="/var/lib/cacti/rra/idirect_nms_server_txtcp_816.rrd":rxtcp:AVERAGE \
DEF:b="/var/lib/cacti/rra/idirect_nms_server_txtcp_816.rrd":rxudp:AVERAGE \
DEF:c="/var/lib/cacti/rra/idirect_nms_server_txtcp_816.rrd":rxhttp:AVERAGE \
DEF:d="/var/lib/cacti/rra/idirect_nms_server_txtcp_816.rrd":rxicmp:AVERAGE \
Then i'm using a CDEF Function to sum it all per direction (format a,b,c,d,+,+,+). I would like to get rid of it and just create one line for the rx data sources and one area for the tx data sources.
How could i do it?
Thanking you
Morya
Sum data sources in a graph in one area or line
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Sum data sources in a graph in one area or line
You may want to use AGGREGATE and use the sum function it provides
R.
R.
Who is online
Users browsing this forum: No registered users and 0 guests