Interface Bandwidth Question

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

Moderators: Developers, Moderators

Post Reply
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Interface Bandwidth Question

Post by pshankland »

Hi,

I am using Cacti again after a while out and am having a problem with working out interface bandwidth percentages (again), so any help would be welcome...

From the start... I have created a new CDEF called 'Percentage Bandwidth Utilisation' which is as follows:

Code: Select all

Item #1     Special Data Source: CURRENT_DATA_SOURCE
Item #2     Custom String: 8
Item #3     Operator: *
Item #4     Custom String: |query_ifSpeed|
Item #5     Operator: /
Item #6     Custom String: 100
Item #7     Operator: *
I then have created a GPRINT Preset call Percentage with a value of (%6.2lf%%)

So, when I add an item into the bytes/sec interface graph, I use a type of GPRINT, the CDEF is 'Percentage Bandwidth Utilisation' and the GPRINT Type is 'Percentage'.

With the above settings I get a percentage value, but I am a bit confused with if it is correct or not. Therefore a couple of questions:

1) As an example, if I am using the bytes/sec graph, and the line speed is reporting as 10000000bps and the current max value is 21.32k what should the percentage be?
2) If I wanted to get a percentage for the interface utilisation with the bits/sec graph, how can this be achieved as there is already a CDEF being used 'Turn Bytes into Bits'?

Thanks.
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

Typically, as soon as I post I *think* I have worked it out!

The CDEF I created, call Percentage Bandwidth Utilisation, should actually be call Percentage Bandwidth Utilisation (bits) as it does the conversion from bytes to bits for me!!

This then means that when I created a new graph item within the bits/sec graph, I don't need the 'Convert Bytes to Bits' CDEF, I just change it to this new 'Percentage Bandwidth Utilisation (bits)' CDEF.

To get the percentage working for bytes, I just need the following CDEF creating, which I will call 'Percentage Bandwidth Utilisation (bytes)':

Code: Select all

Item #1     Special Data Source: CURRENT_DATA_SOURCE
Item #2     Custom String: |query_ifSpeed|
Item #3     Operator: /
Item #4     Custom String: 100
Item #5     Operator: *
Obviously, I could still have got this wrong so have implemented the two new graph templates onto a single interface and hopefully should get the same percentage :)

Thanks.
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

:( Dosn't seem to have worked...

Here is the bytes graph:

Image

And here is the bits graph:

Image

As you can see the maximum percentage is different.

Any suggestions?

Thanks.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Pete,

PM Rony with your question. Include this post.

Larry
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?
crazy72
Posts: 17
Joined: Mon Sep 29, 2008 8:09 am

Post by crazy72 »

If you have one, can you post the solution to ur troubles ?



Thanks
Crazy
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

Unfortunatly, I didn't get a reply to this one and therefore don't have a solution.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests