Community discussions

MikroTik App
 
GestionLegon
just joined
Topic Author
Posts: 1
Joined: Mon May 24, 2021 7:26 pm

Getting & Evaluating Bandwidth from a Port

Mon May 24, 2021 7:43 pm

Hello everyone.

I need help whit an issue.

i have a dude server monitoring many of my networking devices, sometimes the bandwith in a port downs belows an especific value, i need to send an alert when that happens.
So i'm trying to get the RX value on a ether interface but the value captured is an number that i can't understand.

the value is taken by the next OID:

iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets.2

the result is: 3380521224 (Octets)

That OID is the only source i could find to get the bandwith.

The value need to be converted in any way to obtain Mbps ?
Exist another OID that i can take to obtain the value that i need ?

do you know another way to make this task ?


Thanks to Everyone.
Greetings from Colombia.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 9568
Joined: Tue Feb 25, 2014 12:49 pm
Location: 🇮🇹, my 💔 is in 🇺🇦

Re: Getting & Evaluating Bandwidth from a Port

Thu May 27, 2021 8:06 pm

What you write
iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets.2
are total RX bytes of interface with name
iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.2

You can not have rx or tx speed realtime, is dude than calculate the differencies between two read and provide statistical data rates.

Dude have internal function to do that:
[Interface.OutBitRate]
and
[Interface.InBitRate]

Who is online

Users browsing this forum: No registered users and 4 guests