aggregate graphs shows an inaccurate total count
Moderators: Developers, Moderators
aggregate graphs shows an inaccurate total count
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.
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.
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 \
/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 \
Nope, that's for the data source.
graph management -> click on a graph -> enable graph debug. copy output.
graph management -> click on a graph -> enable graph debug. copy output.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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\:" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n" \
AREA:b#FFAB00FF:"server1\:":STACK \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"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
/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\:" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n" \
AREA:b#FFAB00FF:"server1\:":STACK \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"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
Re: aggregate graphs shows an inaccurate total count
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.
...............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.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: aggregate graphs shows an inaccurate total count
But that's correct! 19 is the all-time-high of the "sum of both graphs" (discovered at time2)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
R.
Who is online
Users browsing this forum: No registered users and 3 guests