When I add some device, the device performace like cpu, hdd and memory is shown on the label, by default. I want also to add the bitrate (Rx, Tx) for the network interface on the same place, but I can't find adequate OID for the rate. I can add downloaded and uploaded bytes (Octets Rx, Octets Tx), creating the function like this:
Function name: bytes_in
Code:bytes(
oid("iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets.2")
)
Function name: bytes_out
Code:bytes(
oid("iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifOutOctets.2")
)
and I put these functions on the label.
I can't find OID for the interface bitrate, does it exist at all? If not, can I calculate it somehow for the particular interface?
I'm using the Dude v2.0 beta9.