How get Speed graphic for interface in The Dude?
Posted: Thu Jun 03, 2021 8:21 am
Hello all!
Sorry for my bad english. I have question.
How i may get speed graphic in The Dude for wireless interface.
I create Data Source, tired this:
- see bytes-out oid for interface (bytes-out=.1.3.6.1.2.1.31.1.1.1.10.7), this oid("1.3.6.1.2.1.31.1.1.1.10.7")
- then i do diff32 function - diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")) to get the difference (bytes) from the previous call.
- then i use rate function for this - rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1) - it this is the number of bytes per second
- so i need bit in second - rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1))*8 , this number bit/s
Is everything correct so far?
Then i convert the bits to megabits rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1))*8/1000000
And... round this number:
round(rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1))*8/1000000)
But I get some completely strange data on the graph, the refresh time of the graph is 1 second. Units of measurement on the "M" graph, I also don't understand how to change it.
How correct get current speed for same interface in Mbit/s in The Dude?
I would be grateful for your help.
Sorry for my bad english. I have question.
How i may get speed graphic in The Dude for wireless interface.
I create Data Source, tired this:
- see bytes-out oid for interface (bytes-out=.1.3.6.1.2.1.31.1.1.1.10.7), this oid("1.3.6.1.2.1.31.1.1.1.10.7")
- then i do diff32 function - diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")) to get the difference (bytes) from the previous call.
- then i use rate function for this - rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1) - it this is the number of bytes per second
- so i need bit in second - rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1))*8 , this number bit/s
Is everything correct so far?
Then i convert the bits to megabits rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1))*8/1000000
And... round this number:
round(rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1))*8/1000000)
But I get some completely strange data on the graph, the refresh time of the graph is 1 second. Units of measurement on the "M" graph, I also don't understand how to change it.
How correct get current speed for same interface in Mbit/s in The Dude?
I would be grateful for your help.