SNMP MIBs and OIDs for MikroTik

Today I made Zabbix templates, I started doing first under MikroTik RouterBOARD SXT-Lite2 (2nDr2).

Some OIDs can be found by running the following commands on the device:

system resource print oid
system resource cpu print oid
system health print oid
interface print oid

SNMP should be enabled on the device, in IPSNMPCommunities added community and should check IPSNMP to Enable.

From Linux, you can check the OID command:

snmpwalk -v 2c -c public 192.168.1.1 .1

I will describe below a few OIDs that I used.
SSID:

SNMPv2-SMI::enterprises.14988.1.1.1.3.1.4.2

Signal:

.1.3.6.1.4.1.14988.1.1.1.2.1.3

Uptime:

.1.3.6.1.2.1.1.3.0

CPU load:

.1.3.6.1.2.1.25.3.3.1.2.1

Define the index of interfaces by looking at their description:

.1.3.6.1.2.1.2.2.1.2
ifDescr

LAN traffic (I have an index of 1):

ifInOctets.1
ifOutOctets.1
1.3.6.1.2.1.2.2.1.10.1
1.3.6.1.2.1.2.2.1.16.1

WLAN traffic (I have an index of 2):

ifInOctets.2
ifOutOctets.2
1.3.6.1.2.1.2.2.1.10.2
1.3.6.1.2.1.2.2.1.16.2

Total memory and how many are used:

.1.3.6.1.2.1.25.2.3.1.5.65536
.1.3.6.1.2.1.25.2.3.1.6.65536

CPU frequency:

.1.3.6.1.4.1.14988.1.1.3.14.0

mac addresses of LAN and WLAN:

.1.3.6.1.2.1.2.2.1.6.1
.1.3.6.1.2.1.2.2.1.6.2

Packages with errors in/out on the WLAN interface (I have WLAN under index 2):

.1.3.6.1.2.1.2.2.1.14.2
.1.3.6.1.2.1.2.2.1.20.2

See also:
SNMP OID and MIB for interfaces

Leave a Reply