I am using SNMP in Ubuntu 20.04 to get the network usage info and I am using this formula to calculate the network usage:
InOctets : The difference between two poll cycles of collecting the snmp which represents the count of inbound octets of traffic.
networkUsage = (InOctets x 8 x 100) / ((number of seconds between octets) x speed)
Here is the reference that I found the formula
What is the problem? I sometimes get over %100000 network usage and I could not found an alternative formula for calculation. Is the formula wrong or is there something else that could make the problem?
I am getting the network info from a virtual server (Ubuntu 20.04) which includes the latest SNMP installation. The server has also two ethernet cards, so it has two networks and I am using bond0 to represent them with a single IP address. I am reading SNMP values of the server from a remote computer which is a member of the LAN.