Differances between graphs.

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

Moderators: Developers, Moderators

Post Reply
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Differances between graphs.

Post by rs1 »

Hello,

I'm creating a new cacti server. When I compare the graphs to the old ones there seems to be differences. Some are dead on however others can be quite a bit out. The graphs are exactly the same setup. Attaching pictures, is this common or could it be because it is a newer version of cacti and more accurate?
Attachments
example2.PNG
example2.PNG (25.31 KiB) Viewed 1115 times
example1.PNG
example1.PNG (36.02 KiB) Viewed 1115 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Differances between graphs.

Post by gandalf »

The first one seems too be a "capped" 32 bit Counter graph, as it "stops" at 114 mbps as a peak value (32 bit Counters can't report traffic larger than that value when polled in a 300 sec interval)
R.
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Differances between graphs.

Post by rs1 »

I have one minute intervals between polls. Is there anyway which I can change this so it reads correctly?
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Differances between graphs.

Post by rs1 »

It isn't because it's limited as the graphs are different even when it is a smaller amount. The data all appears to be the same though. I cannot find a solution, your advice is greatly appreciated.
Attachments
example2.PNG
example2.PNG (12.05 KiB) Viewed 1094 times
example1.PNG
example1.PNG (18.78 KiB) Viewed 1094 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Differances between graphs.

Post by gandalf »

There's some math on those graphs to convert 300 sec interval data to a per second value. When you've changed to a 60 sec interval, the math has to be adjusted as well. So please use the graph management in debug mode to find the raw rrdtool graph statement and post that.
R.
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Differances between graphs.

Post by rs1 »

Thanks for you reply :) here is the graph debug information :)


c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Core1 - Traffic - Gi0/2" \
--rigid \
--base=1000 \
--height=120 \
--width=700 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="C\:/inetpub/wwwroot/cacti/rra/core1_traffic_in_2507.rrd":traffic_in:AVERAGE \
DEF:b="C\:/inetpub/wwwroot/cacti/rra/core1_traffic_in_2507.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 344.93 GB\n" \
LINE1:cdeff#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 191.71 GB"
RRDTool Says:
OK
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Differances between graphs.

Post by gandalf »

That looks fine. You find the bytes to bit conversion only. And what about the other one?
R.
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Differances between graphs.

Post by rs1 »

Oh sorry, here it is.

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="core1 - Traffic - Gi0/2" \
--rigid \
--base=1000 \
--height=120 \
--width=700 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/core1_traffic_in_241.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/rra/core1_traffic_in_241.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 1.07 TB\n" \
LINE1:cdeff#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 326.88 GB"
RRDTool Says:
OK


Anything I should be looking out for?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Differances between graphs.

Post by gandalf »

I was looking for differences in CDEFs. But both are equal, as has to be expected. But now I'm at a loss regarding the different numbers returned.
Personally, I'd now revert to manual polling of those items to write down the numbers found and compute the results from that to verify. This is a tedious and difficult task. And up to now we never found issues with the maths (In fact, Cacti does not perform ANY math - all is done by SNMP COUNTERs fed into rrdtool).
R.
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Differances between graphs.

Post by rs1 »

Do you have a link to where I can read how to do manual polling please and one is using CMD and one is using Spine. Can't see that effecting it though?

P.S Appreciate all your help!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest