Aggregate graph with 64 bit counters?

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Aggregate graph with 64 bit counters?

Post by stormonts »

I have two traffic (bytes/second) graphs that use 64 bit counters. (Image shown).

I am trying to use the aggregate plugin to create one graph that shows the combined total of the input and the output traffic.

I selected the graphs, click on the "Create Aggregate Graph" option, selected "Print totaling legend items only", selected "Total Similar Data Sources", and have tried various options for "Graph Type", but no matter what I choose, no graph is created. I did change the Cacti log doesn't show any errors either. What am I doing wrong?
Attachments
d.png
d.png (92.7 KiB) Viewed 2040 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What title did you apply? How did you try to find that graph? Did you use latest AGGREGATE version? Did you read the provided PDF and especially the paragraph on "how to find the aggregated graph"
R.
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Post by stormonts »

Yes I read the PDF and I found the aggregate graph, but the problem was that there was no graph being rendered. Most recent version is being used.

I finally got it working, but the problem I have now is that my "maximum" values aren't totaling correctly. However, the Current and Average are.
Attachments
Untitled2.png
Untitled2.png (42.6 KiB) Viewed 2020 times
2.png
2.png (248.64 KiB) Viewed 2020 times
Untitled.png
Untitled.png (199.84 KiB) Viewed 2020 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

stormonts wrote: the problem I have now is that my "maximum" values aren't totaling correctly. However, the Current and Average are.
How do you know? You do not print the MAX on the graph!
R.
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Post by stormonts »

I don't understand your reply. The MAX values are clearly printed on the graph, and I even circled them in red. The MAX values on the two standalone graphs add up to different MAX values on the aggregate graph.
rujipars
Posts: 39
Joined: Fri Nov 02, 2007 11:25 am

Re: Aggregate graph with 64 bit counters?

Post by rujipars »

max( a + b ) NOT EQUAL max(a) + max(b)

because "a" and "b" usually not peak at the same time.
User avatar
TheWitness
Developer
Posts: 17064
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Aggregate graph with 64 bit counters?

Post by TheWitness »

Aggregate is working a designed.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Re: Aggregate graph with 64 bit counters?

Post by stormonts »

Then I guess the question is, how do I go about creating a graph that totals the input and output traffic of 4 different NICs on one server and then list the total current, average, AND max traffic?
User avatar
TheWitness
Developer
Posts: 17064
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Aggregate graph with 64 bit counters?

Post by TheWitness »

Does your existing template have a MAX line for in and out? If it does, Aggregate will aggregate it. If you have the MAX consolidated function turned on in the RRA definition, then you can alter the graph template to add Max of anything other than the 5 minute RRA. That would be aggregatable.

Now, the way things work on the 1 day graph, you are not going to have any max's. And total traffic will be:

Int1 + Int2 + Int3 + Int4 = Total = Max

If you are displaying the 30 minute RRA (aka Weekly Graph), then you can get a better MAX, but it still equates to, for every 30 minute sample:

MAX(Int1 over 30 minutes) + MAX(Int2 over 30 minutes) + ...

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Re: Aggregate graph with 64 bit counters?

Post by stormonts »

For each of the interfaces, I'm using the standard "In/Out Bytes (64 bit counters)" graph template. Below are some images of the template, the data source, the RRAs in use, and the consolidation functions.

I'm not looking for a "Max" line to be drawn, just the max to be totaled at the bottom. You are saying that I need to add a MAX LINE to each of the initial graphs, in order for Aggregate to total it and then do a GPRINT of the combined total?
Attachments
Untitledd.png
Untitledd.png (23.86 KiB) Viewed 1943 times
ds.png
ds.png (35.05 KiB) Viewed 1943 times
rra.png
rra.png (19.15 KiB) Viewed 1943 times
rra2.png
rra2.png (15.57 KiB) Viewed 1943 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests