Aggregate issue - stacked traffic graphs

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
jbeardsley
Posts: 3
Joined: Wed Nov 24, 2010 9:28 am

Aggregate issue - stacked traffic graphs

Post by jbeardsley »

Hello,

Cacti 0.8.7g
Plugin Architecture Version: 2.8
Aggregate 0.75

Just started using the Aggregate plugin (thanks gandalf!) and am RTFMing my way through the aggregate manual on how to create a stacked aggregate traffic graph, and have an issue I don't quite understand.

I've got 9 servers I'm combining, and have set them up basically as the tutorial notes, with a custom CDEF to negate one side of the graph (outbound in my case). The first instance of each both inbound and outbound is AREA, and the rest are STACK. Yet when the graph comes up, it looks like so:
Image

As you can see the only thing that really looks like it's graphing properly are the 2 AREA values. The STACK metrics are all over the map on both sides of the X axis (note orange areas above the X axis, and green areas below). So it seems like it's negating things it shouldn't, and adding what should be negative. First thing I double-checked and confirmed was that I did in fact have all my inbound traffic using the positive CDEF, and all my outbound traffic using the negated one. So then I set the graph to debug mode to see what was going to RRDTool, and here's the key criteria:

Code: Select all

DEF:a="/var/www/cacti/rra/mail006_traffic_in_3409.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/mail006_traffic_in_3409.rrd":traffic_out:AVERAGE \
DEF:c="/var/www/cacti/rra/mail007_traffic_in_3836.rrd":traffic_in:AVERAGE \
DEF:d="/var/www/cacti/rra/mail007_traffic_in_3836.rrd":traffic_out:AVERAGE \
DEF:e="/var/www/cacti/rra/mail008_traffic_in_3851.rrd":traffic_in:AVERAGE \
DEF:f="/var/www/cacti/rra/mail008_traffic_in_3851.rrd":traffic_out:AVERAGE \
DEF:g="/var/www/cacti/rra/mail009_traffic_in_3866.rrd":traffic_in:AVERAGE \
DEF:h="/var/www/cacti/rra/mail009_traffic_in_3866.rrd":traffic_out:AVERAGE \
DEF:i="/var/www/cacti/rra/mail010_traffic_in_3881.rrd":traffic_in:AVERAGE \
DEF:j="/var/www/cacti/rra/mail010_traffic_in_3881.rrd":traffic_out:AVERAGE \
DEF:ba="/var/www/cacti/rra/mail011_traffic_in_3762.rrd":traffic_in:AVERAGE \
DEF:bb="/var/www/cacti/rra/mail011_traffic_in_3762.rrd":traffic_out:AVERAGE \
DEF:bc="/var/www/cacti/rra/mail012_traffic_in_3896.rrd":traffic_in:AVERAGE \
DEF:bd="/var/www/cacti/rra/mail012_traffic_in_3896.rrd":traffic_out:AVERAGE \
DEF:be="/var/www/cacti/rra/mail013_traffic_in_3787.rrd":traffic_in:AVERAGE \
DEF:bf="/var/www/cacti/rra/mail013_traffic_in_3787.rrd":traffic_out:AVERAGE \
DEF:bg="/var/www/cacti/rra/mail014_traffic_in_3773.rrd":traffic_in:AVERAGE \
DEF:bh="/var/www/cacti/rra/mail014_traffic_in_3773.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefc=b,-8,* \
CDEF:cdefd=b,8,* \
CDEF:cdefe=c,8,* \
CDEF:cdefg=d,-8,* \
CDEF:cdefh=d,8,* \
CDEF:cdefi=e,8,* \
CDEF:cdefba=f,-8,* \
CDEF:cdefbb=f,8,* \
CDEF:cdefbc=g,8,* \
CDEF:cdefbe=h,-8,* \
CDEF:cdefbf=h,8,* \
CDEF:cdefbg=i,8,* \
CDEF:cdefbi=j,-8,* \
CDEF:cdefbj=j,8,* \
CDEF:cdefca=ba,8,* \
CDEF:cdefcc=bb,-8,* \
CDEF:cdefcd=bb,8,* \
CDEF:cdefce=bc,-8,* \
CDEF:cdefcf=bc,8,* \
CDEF:cdefcg=bd,8,* \
CDEF:cdefci=be,8,* \
CDEF:cdefda=bf,-8,* \
CDEF:cdefdb=bf,8,* \
CDEF:cdefdc=bg,8,* \
CDEF:cdefde=bh,-8,* \
CDEF:cdefdf=bh,8,* \
You can see that for each of the ones I've set to use the custom "Make stack negative, turn bytes into bits" CDEF, there are 2 entries - a positive and a negative. For the ones set to the "Turn bytes into bits" CDEF, you just get the single entry. If I reset the custom CDEF to the original one, it changes back to one CDEF entry in the RRD output. I suspect (but don't know for sure) that this is the cause of the incorrect graph.

So my question is - is this an operator error, or something programmatic? If the former, where did I go wrong and how can I fix? Thanks.
jbeardsley
Posts: 3
Joined: Wed Nov 24, 2010 9:28 am

Re: Aggregate issue - stacked traffic graphs

Post by jbeardsley »

OK nevermind all that, I just figured out my issue was that I had them sorted incorrectly. For those who may see this later with the same problem sort them thusly

server 1 IN = AREA
server 2 IN = STACK
server N IN = STACK
server 1 OUT = AREA
server 2 OUT = STACK
server N OUT = STACK

That'll fix it up.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests