Ad Widget

Collapse

snmp mikrotik router monitoting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nemesis
    Junior Member
    • Apr 2025
    • 2

    #1

    snmp mikrotik router monitoting

    hi ya all, excuse my english i'm new here,
    I'm monitoring a mikrotik router with zabbix and my goal is to have a dashboard where interface states are displayed. I'm using the MikroTik RB1100AHx4 model via SNMP.
    In the 'operational status' element prototype, the key uses the index of the interface to display the status, I first noticed a dynamic change in the indexes of the virtual interface sstp and The index changes periodically and never returns to its initial value. whereas normally, the key uses a stable element of the host to monitor to reduce the impact of dynamic changes on the dashboard. so I used the #IFNAME macro in the key (in reference to the interface name), which is much more stable than the index.
    the problem is, on the Mikrotik router, a numeric suffix (-1) is often added to the name of virtual interfaces (sstp), and this change lasts from a few minutes to several hours before the interface reverts to its original name. however, when this happens over a period of time, the interface status shows “no data” even though the interface is still UP and only the name has changed.
    I've increased the delay for deactivating and deleting lost resources, so that even if the name changes, zabbix doesn't deactivate or delete the interface on the dashboard for the time equivalent to the delay, in order to take into account the return to the original name, but even with this, the problem persists. So when the name changes, the interface is discovered, but on the dashboard it says “no data” even though the interface is UP.
    how can I solve this problem if you can help, thx
  • mrnobody
    Member
    • Oct 2024
    • 61

    #2
    SNMP depends of MIBs;
    Indexing is a common problem in MIBs;
    Dynamic indexing of MIBs (can't understand why it exists)...
    Hope someone knows a trick for this in Zabbix, i want to know too. Have you tested The Dude?

    Comment

    • nemesis
      Junior Member
      • Apr 2025
      • 2

      #3
      I've had this problem for 1 month now
      with the change of indexes, the status of interfaces is correctly updated on zabbix in the 'last data' section.
      the problem lies in the display on the dashboard, because the key in 'operational status' element must use a static parameter to avoid dynamic changes, that's why I used the #IFNAME macro, but this numerical suffix problem occurs, and this only concerns sstp interfaces.
      For example, in the configuration of my mikrotik router, the name of an interface is defined as follows: '<sstp-int-dc1>' some time later the name changes to '<sstp-int-dc1-1>',
      in the 'element value' widget of the dashboard for displaying interface status, if it's the element 'RouterMikrotik: Interface <sstp-int-dc1>(): Operational status' which is retrieved, when the name changes, it puts me 'no data', while the interface is still UP
      I've tried filtering out interfaces whose names have a numeric suffix, but even with that, the problem persists.

      Comment

      Working...