Good Morning,
Why does the Mikrotik return multiple octets when you poll IF-MIB::ifHCInOctets & ifHCOutOctets them. Which octet is representative of bytes in and out respectively.
Thanks.
Good Morning,
Why does the Mikrotik return multiple octets when you poll IF-MIB::ifHCInOctets & ifHCOutOctets them. Which octet is representative of bytes in and out respectively.
Thanks.
Please provide us with the command that you are using to check variables.
I assume more specific command or oid should be used to return single value.
We are using sensu to pool the mirkotik’s here is the command and out put.
ruby /etc/sensu/plugins/snmp-bulk-metrics.rb -C public -h happy.fun.zone -O 1.3.6.1.2.1.31.1.1.1.6.2,1.3.6.1.2.1.31.1.1.1.10.2 -s gw
happy.fun.zone.gw.IF-MIB::ifHCInOctets.3 298542649.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCInOctets.4 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCInOctets.5 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCInOctets.6 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCInOctets.7 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCInOctets.8 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCInOctets.9 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCInOctets.10 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCInOctets.11 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCInOctets.12 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.3 2318359385.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.4 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.5 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.6 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.7 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.8 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.9 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.10 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.11 0.0 1424701185
happy.fun.zone.gw.IF-MIB::ifHCOutOctets.12 0.0 1424701185
There are InOctets and OutOctets for every interface…
So what you are seeing in there is for every interface on your router.
That was it I changed my request and it sorted it all out. Do you happen to know what is the best practice to measure dropped packets in a queue tree ?
Thanks.
Neither /queue simple no queue tree have dropped packets available by SNMP,
/queue simple
0 name=.1.3.6.1.4.1.14988.1.1.2.1.1.2.1 bytes-in=.1.3.6.1.4.1.14988.1.1.2.1.1.8.1
bytes-out=.1.3.6.1.4.1.14988.1.1.2.1.1.9.1 packets-in=.1.3.6.1.4.1.14988.1.1.2.1.1.10.1
packets-out=.1.3.6.1.4.1.14988.1.1.2.1.1.11.1 queues-in=.1.3.6.1.4.1.14988.1.1.2.1.1.12.1
queues-out=.1.3.6.1.4.1.14988.1.1.2.1.1.13.1
/queue tree
0 name=.1.3.6.1.4.1.14988.1.1.2.2.1.2.16777216 packet-mark=.1.3.6.1.4.1.14988.1.1.2.2.1.3.16777216
bytes=.1.3.6.1.4.1.14988.1.1.2.2.1.7.16777216 packets=.1.3.6.1.4.1.14988.1.1.2.2.1.6.16777216
queues=.1.3.6.1.4.1.14988.1.1.2.2.1.8.16777216
You can monitor discarded packets on interface directly.