Monitor MikroTik RouterOS with Zabbix (SNMPv3 authPriv, Built-in Template)

On this page9 sections

This post shows how to monitor a MikroTik router (RouterOS 7) with Zabbix over SNMPv3 (authPriv) and the built-in MikroTik hEX by SNMP template, then adds a one-page dashboard.

Lab context

  • Router
    • Model: MikroTik hEX (E50UG), RouterOS 7.25.2
    • LAN address: 192.168.0.1 (router.maksonlee.com)
  • Zabbix
    • Zabbix server: 8.0.0, at 192.168.0.85 on the same LAN

What you’ll build

  • A read-only SNMPv3 user on the router for Zabbix
  • The default public community disabled
  • A Zabbix host with CPU, memory, storage, and per-interface traffic, errors, and link state
  • A dashboard with all of it on one page

Prerequisites

  • A RouterOS terminal as an admin (WinBox → New Terminal, or SSH)
  • The Zabbix server reaches the router on UDP 161 (the default RouterOS firewall accepts it from the LAN)
  • Two passphrases (authentication + privacy), 8+ characters each

1. Add an SNMPv3 user for Zabbix (RouterOS)

RouterOS calls an SNMP user a community, for SNMPv3 too. In the router terminal:

/snmp community add name=zabbix security=private authentication-protocol=SHA256 authentication-password=CHANGE_ME_AUTH_PASS encryption-protocol=AES encryption-password=CHANGE_ME_PRIV_PASS addresses=192.168.0.85/32 read-access=yes write-access=no
  • security=private: every request must be authenticated and encrypted (authPriv)
  • addresses: only the Zabbix server may query
  • SHA256 is offered on RouterOS 7.25.2; 7.24.5 only has MD5/SHA1, so use SHA1 there and in step 4

2. Disable the default public community

The default public community answers any address over SNMP v1/v2c with no password. Disable it before you enable SNMP:

/snmp community set [find default=yes] disabled=yes

3. Enable SNMP

Enable the service:

/snmp set enabled=yes

Check:

/snmp community print

Expected:

Flags: * - DEFAULT; X - DISABLED
Columns: NAME, ADDRESSES, SECURITY, READ-ACCESS, WRITE-ACCESS
#    NAME    ADDRESSES        SECURITY  READ-ACCESS  WRITE-ACCESS
0 *X public  ::/0             none      yes          no
1    zabbix  192.168.0.85/32  private   yes          no

4. Create the host in Zabbix

  • Data collection → Hosts → Create host
  • Host name: router.maksonlee.com
  • Templates: MikroTik hEX by SNMP (pick the one named after your model, or the generic Mikrotik by SNMP)
  • Host groups: Network devices (type a new name to create the group)
  • Interfaces → Add → SNMP
    • IP address: 192.168.0.1
    • SNMP version: SNMPv3
    • Security name: zabbix
    • Security level: authPriv
    • Authentication protocol: SHA256, Authentication passphrase: {$SNMP.AUTH.PASS}
    • Privacy protocol: AES128, Privacy passphrase: {$SNMP.PRIV.PASS}
New host form in Zabbix with an SNMPv3 interface for the MikroTik router

The passphrase fields are shown in plain text, so we’ll keep the real values in Secret text macros:

  • Macros tab → add {$SNMP.AUTH.PASS} and {$SNMP.PRIV.PASS}
  • For each one, open the dropdown next to Value → Secret text, then type the passphrase from step 1
  • Click Add
Macros tab of the new host with two Secret text macros

5. Verify

Data collection → Hosts: after a minute or two, you’ll see a green SNMP under Availability, and discovery has added the per-interface items (128 items here).

Zabbix host list with the router and a green SNMP availability badge

Monitoring → Latest data → select the host and filter Name by an interface (e.g., ether1):

Latest data in Zabbix for the ether1 interface of the MikroTik router

Note: on this hEX, Temperature sensor discovery stays Not supported (No Such Object). Only the CPU temperature is read.

6. Add a dashboard

The built-in template has one dashboard, Network interfaces, with a traffic graph per interface. This extra template adds an overview page. It holds no items: every widget finds the built-in template’s items by name.

  • Download zabbix-mikrotik-overview-dashboard-1.0.zip and extract mikrotik-overview-dashboard.yaml (an export from Zabbix 8.0)
  • Data collection → Templates → Import → choose the file → Import
  • Review the Added list → Import again. You should see Imported successfully.
  • Data collection → Hosts → open the router → Templates: add MikroTik overview dashboard → Update
  • Monitoring → Hosts → in the router’s row, click Dashboards → MikroTik: Overview
MikroTik: Overview dashboard in Zabbix with CPU, memory, temperature, interface state and traffic graphs

An interface that is down is shown in grey: unused ports are always down.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top