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: *
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.