Stacked graph problem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Stacked graph problem

Post by TFC »

Hi,
I have 3 DS
I wanna see these 3 DS like as 1 DS.
I mean, I wanna see total graphic that is shown 1 inbound and 1 outbound.
I feel that I must use STACK, but when I try to use this I can't get one line.
You can see my problem in graph shown below.
As you see there are 3 line. But I wanna se 1 line.
When I try to use "none" as color for one outbound line, I see that value of the sum was decrease.
Anybody can help me?
Attachments
stacked.JPG
stacked.JPG (104.35 KiB) Viewed 2458 times
masterj
Posts: 6
Joined: Mon Dec 05, 2005 7:15 am
Location: Norway

Post by masterj »

I'm looking for a solution to the same problem myself!
Please update here if you find a solution :)


Jo Christian Buvarp
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

TFC, you where right on the way. You will have to add a LINEx/AREA with CDEF "Total all Data Sources" or the like (depending on hwo you want the totals to be build, on all ds or on INPUT and OUTPUT seperately)
Reinhard
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

put in the datasources that you want to stack as 1: area 2: stack 3: stack and so on... DO NOT USE ANY COLOR FOR THESE ITEMS.

once you have added all the DS that you want to stack...
add another item as outlined above with line2 - Total all Datasources...

since this is the only item with any color selected - it will be the only line to show up.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I dont Understand that solution.
Can you repeat step by step?
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

Post by menjia »

i have asked almost the same question
here is my question http://forums.cacti.net/viewtopic.php?p ... ght=#52215

you can see the reply bye lvm:
Please assure the correct function of your XML. Create a Data Query, a Data Template and a Graph Template for it. Associate the Graph Template to the Data Query and generate a Graph using this new Data Query.
If you get everything up and running, the last thing is to create a CDEF=a,b,/
But you must be sure, the DEFs (aka Data Sources) are denoted as a or b, respectively. To do so, please select the Graph you're working on and click the wrench next to the graph. It displays the full "rrdtool graph" statement. Search for sth like Code:
DEF:a="/var/www/html/workspace/branch/rra/gandalf_traffic_in_88.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/workspace/branch/rra/gandalf_traffic_in_88.rrd":traffic_out:AVERAGE \
a and b denote the variables to be used in the CDEF...


so your just need to create a new CDEF under Graph Management,like CDEF=a,b,+,c,+,d,+ , and do not choose color for your single date source graph items, only choose color for your summary graph item.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests