NetXMS Support Forum

English Support => General Support => Topic started by: vinhnt26 on July 01, 2015, 05:56:20 AM

Title: DCI: SNMP get Traffic interface (bytes/s) ?
Post by: vinhnt26 on July 01, 2015, 05:56:20 AM
Hi all,
I need to get Traffic interface (bytes/s) by SNMP. But i not found OID for it, i only found OID: ifHCOutOctets (.1.3.6.1.2.1.31.1.1.1.10) and ifHCInOctets (.1.3.6.1.2.1.31.1.1.1.10). But It get total number of octets transmitted/received.
Anyone has OID or way to help me get Traffic interface (bytes/s) ?

Thanks,
Title: Re: DCI: SNMP get Traffic interface (bytes/s) ?
Post by: tomaskir on July 01, 2015, 11:08:59 AM
Those 2 are the right OIDs.

In DCI Transformation set:
Delta calc: Average delta per second
In transform script: "return $1 * 8;"
Title: Re: DCI: SNMP get Traffic interface (bytes/s) ?
Post by: vinhnt26 on July 01, 2015, 12:53:27 PM
Hi tomaskir,
Two OIDs get traffic interface (bytes/s)?
I read description of OIDs, it is: "The total number of octets transmitted out of the interface, including framing characters...Discontinuities in the value of this counter can occur at re-initialization of the management system.."
What does this mean?. I think it mean is get total number of octets of interface from system start. Not is (bytes/s) or (bits/s)....  :(
Title: Re: DCI: SNMP get Traffic interface (bytes/s) ?
Post by: tomaskir on July 01, 2015, 01:10:49 PM
Yes, its 2 OIDs.
One is traffic received (download), other traffic sent (upload).

You are correct that its a counter of bytes received on an interface since initialization, but that is fine.
This is why we do the transformations I mentioned.

NetXMS will turn those numbers into bits/s.

All NMS's do it like that.
Title: Re: DCI: SNMP get Traffic interface (bytes/s) ?
Post by: vinhnt26 on July 02, 2015, 04:04:44 AM
Thanks tomaskir,  :)