aggregate graphs shows an inaccurate total count

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

Moderators: Developers, Moderators

Post Reply
lgpana
Posts: 5
Joined: Mon Aug 16, 2010 10:24 am

aggregate graphs shows an inaccurate total count

Post by lgpana »

on some of our graphs are setup to show the active HTTP sessions on a group of servers. example-

server1- 100 current
server2- 100 current
server3- 100 current
server4- 100 current
server5- 100 current
Total- 482 current

as you can see from the example above, I was expecting to have a total of "500" connections, but for some reason, the graph always shows a number that's less of the actual connections.

any ideas?

by the way, other similar graphs are fine.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post the whole rrdtool graph statement. I'm quite sure to know what happens ...
R.
lgpana
Posts: 5
Joined: Mon Aug 16, 2010 10:24 am

Post by lgpana »

is this what you're looking for? Im new to cacti.

/usr/local/rrdtool-1.3.8/bin/rrdtool create \
/u01/cacti-0.8.7e/rra/275/13483.rrd \
--step 300 \
DS:ACTIVESESSIONS:GAUGE:600:0:10000 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Nope, that's for the data source.

graph management -> click on a graph -> enable graph debug. copy output.
lgpana
Posts: 5
Joined: Mon Aug 16, 2010 10:24 am

Post by lgpana »

RRDTool Command:

/usr/local/rrdtool-1.3.8/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="application active sessions" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/t1/cacti-0.8.7e/rra/275/13483.rrd":ACTIVESESSIONS:AVERAGE \
DEF:b="/t1/cacti-0.8.7e/rra/276/13484.rrd":ACTIVESESSIONS:AVERAGE \
DEF:c="/t1/cacti-0.8.7e/rra/277/13485.rrd":ACTIVESESSIONS:AVERAGE \
DEF:d="/t1/cacti-0.8.7e/rra/278/13486.rrd":ACTIVESESSIONS:AVERAGE \
DEF:e="/t1/cacti-0.8.7e/rra/279/13487.rrd":ACTIVESESSIONS:AVERAGE \
DEF:f="/t1/cacti-0.8.7e/rra/280/13488.rrd":ACTIVESESSIONS:AVERAGE \
DEF:g="/t1/cacti-0.8.7e/rra/281/13489.rrd":ACTIVESESSIONS:AVERAGE \
DEF:h="/t1/cacti-0.8.7e/rra/282/13490.rrd":ACTIVESESSIONS:AVERAGE \
DEF:i="/t1/cacti-0.8.7e/rra/275/13235.rrd":ACTIVESESSIONS:AVERAGE \
CDEF:cdefdc=TIME,1282069536,GT,a,a,UN,0,a,IF,IF,TIME,1282069536,GT,b,b,UN,0,b,IF,IF,TIME,1282069536,GT,c,c,UN,0,c,IF,IF,TIME,1282069536,GT,d,d,UN,0,d,IF,IF,TIME,1282069536,GT,e,e,UN,0,e,IF,IF,TIME,1282069536,GT,f,f,UN,0,f,IF,IF,TIME,1282069536,GT,g,g,UN,0,g,IF,IF,TIME,1282069536,GT,h,h,UN,0,h,IF,IF,TIME,1282069536,GT,i,i,UN,0,i,IF,IF,+,+,+,+,+,+,+,+ \
CDEF:cdefde=TIME,1282069536,GT,a,a,UN,0,a,IF,IF,TIME,1282069536,GT,b,b,UN,0,b,IF,IF,TIME,1282069536,GT,c,c,UN,0,c,IF,IF,TIME,1282069536,GT,d,d,UN,0,d,IF,IF,TIME,1282069536,GT,e,e,UN,0,e,IF,IF,TIME,1282069536,GT,f,f,UN,0,f,IF,IF,TIME,1282069536,GT,g,g,UN,0,g,IF,IF,TIME,1282069536,GT,h,h,UN,0,h,IF,IF,TIME,1282069536,GT,i,i,UN,0,i,IF,IF,+,+,+,+,+,+,+,+ \
AREA:a#FFFF00FF:"server1\:" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n" \
AREA:b#FFAB00FF:"server1\:":STACK \
GPRINT:b:LAST:"Current\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf\n" \
AREA:c#FF7D00FF:"server2\:":STACK \
GPRINT:c:LAST:"Current\:%8.0lf" \
GPRINT:c:AVERAGE:"Average\:%8.0lf" \
GPRINT:c:MAX:"Maximum\:%8.0lf\n" \
AREA:d#FEDADAFF:"server3\:":STACK \
GPRINT:d:LAST:"Current\:%8.0lf" \
GPRINT:d:AVERAGE:"Average\:%8.0lf" \
GPRINT:d:MAX:"Maximum\:%8.0lf\n" \
AREA:e#DE0056FF:"server4\:":STACK \
GPRINT:e:LAST:"Current\:%8.0lf" \
GPRINT:e:AVERAGE:"Average\:%8.0lf" \
GPRINT:e:MAX:"Maximum\:%8.0lf\n" \
AREA:f#AD3B6EFF:"server5\:":STACK \
GPRINT:f:LAST:"Current\:%8.0lf" \
GPRINT:f:AVERAGE:"Average\:%8.0lf" \
GPRINT:f:MAX:"Maximum\:%8.0lf\n" \
AREA:g#750F7DFF:"server6\:":STACK \
GPRINT:g:LAST:"Current\:%8.0lf" \
GPRINT:g:AVERAGE:"Average\:%8.0lf" \
GPRINT:g:MAX:"Maximum\:%8.0lf\n" \
AREA:h#562B29FF:"server7\:":STACK \
GPRINT:h:LAST:"Current\:%8.0lf" \
GPRINT:h:AVERAGE:"Average\:%8.0lf" \
GPRINT:h:MAX:"Maximum\:%8.0lf\n" \
LINE3:cdefdc#0000007F:"Total\:" \
GPRINT:cdefdc:LAST:" Current\:%8.0lf" \
GPRINT:cdefde:AVERAGE:"Average\:%8.0lf" \
GPRINT:cdefde:MAX:"Maximum\:%8.0lf\n"
RRDTool Says:
ok
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I was saying too much; I need a screenshot as well.
R.
lgpana
Posts: 5
Joined: Mon Aug 16, 2010 10:24 am

Post by lgpana »

the screenshot is attached.. if that's not enough, let me know exactly what you're looking for.
Attachments
tomcatsessions.JPG
tomcatsessions.JPG (101.43 KiB) Viewed 2387 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I need a screenshot of the graph, showing the graph and the legend
R.
lgpana
Posts: 5
Joined: Mon Aug 16, 2010 10:24 am

Post by lgpana »

this is it.

I really appreciate this.
Attachments
tomcatsessions1.JPG
tomcatsessions1.JPG (52.97 KiB) Viewed 2371 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Ooops, now I see. Will have to investigate, no obvious error found.
R.
CNick
Posts: 1
Joined: Wed Sep 15, 2010 5:11 am

Post by CNick »

any update? I have same issue and if you need I can provide my details for troubleshooting.
Thank you.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is which version of cacti? I guess pre 087g? Then, I need the version of rrdtool used. Does the mismatch occur for "Current" data only?
R.
TooBusy
Posts: 7
Joined: Fri Oct 26, 2007 5:23 am

Re: aggregate graphs shows an inaccurate total count

Post by TooBusy »

Here is what I have found. Please feel free to tell me I am wrong. Lets start with the following data set.

...............time1....time2....time3
stream1........5.........11........13
stream2.......12.........8..........3

The Aggregate plugin will show the following data for max:

stream1 max: 13
stream2 max: 12
aggregate max: 19

Now obviously 13+12 doesn't equal 19, but at 'time slot 2' it was the highest aggregated data point, thus we see what appears to be a discrepancy in the data that isn't really there.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: aggregate graphs shows an inaccurate total count

Post by gandalf »

TooBusy wrote:Here is what I have found. Please feel free to tell me I am wrong. Lets start with the following data set.

...............time1....time2....time3
stream1........5.........11........13
stream2.......12.........8..........3

The Aggregate plugin will show the following data for max:

stream1 max: 13
stream2 max: 12
aggregate max: 19
But that's correct! 19 is the all-time-high of the "sum of both graphs" (discovered at time2)
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests