performancesnmputilizationjuniper

Live traffic on port via snmp and discrepancies


Iam trying to get data from HP switches and Juniper firewalls and its port via snmp.

I am looking for the way how to analyze live traffic on port so I can create a graph of utilization of the ports like on Solarwinds or Observium.

So far I have the results I am getting are from the formula on How to calculate traffic on cisco

It works fine, however, every couple of readings I get abnormal speeds. I.e. for a virtual interface on the firewall, which is limited to 4MB I get 20+ MB every now and then.

I have a cron job which polls the devices every 5 minutes so the formula is using 300 seconds as a delta of time.

So the question is, is it possible for a port to be showing these abnormalities or am I doing something wrong? Any insight would be amazing :-)


Solution

  • The problem is that you are using ifTable defined in RFC1213. It is sort of outdated due to ifInOctets and ifOutOctets are defined as 32-bit counters. So they will overflow and reset real fast and you'll face abnormal results when this happens. I'd suggest switching to ifXTable (IF-MIB) where these counters are defined as 64-bit values.