Mikrotik 3.2.2 on CRE 2.4.0p21 not working (workaround found)

Hi,

I’m trying to re-setup mikrotik on Check-MK 2.4.0p21 after check-mk and os upgrade - without success.

What I did so far:

  • backed up check-mk instance (2.2.0p47)
  • removed site and checkmk
  • upgraded os to ubuntu 24.04
  • installed checkmk 2.2.0p47 and restored site
  • Uninstalled mikrotik Plugin with mkp and removed the rules.
  • Upgraded the Check-MK instance from 2.2.0p47 to 2.3.0pxxx to 2.4.0p21.
  • Downloaded Plugin 3.2.2. from checkmk-exchange, installed it via mkp and enabled it.

I expect to see an entry “Mikrotik RouterOS” at Setup → Agents → Other Integrations. But there’s no Mikrotik Entry.

$ mkp list | grep mikrotik
mikrotik 3.2.2   Mikrotik       Andrea Fadda (a.fadda....)             2.3.0        -             28    Enabled (active on this site)

OMD[ck2]:~/x/mikrotik$ omd sites 
SITE             VERSION          COMMENTS
ck2              2.4.0p21.cre     default version 

ChatGPT leaded the way. The Plugin is not (yet) fully compatible with Check-MK 2.4.

It has two registration functions. But only one is allowed!

So within the instance, there are these two files:

OMD[ck2]:~$ find . -type f | grep mikrotik|grep .py| grep -i wato
./local/share/check_mk/web/plugins/wato/mikrotik.py
./local/share/check_mk/web/plugins/wato/mikrotik_register.py

I like to have the main sensors and so I’m disabling mikrotik.py:

OMD[ck2]:~$  mv  ./local/share/check_mk/web/plugins/wato/mikrotik.py ./local/share/check_mk/web/plugins/wato/mikrotik.py.disabled

OMD[ck2]:~$ omd restart

OMD[ck2]:~$ cmk -vv web reload

Now the Entry “Mikrotik RouterOS” is appearing at Setup → Agents → Other Integrations

And not to forget: Thank you Andrea Fadda for this plugin! It’s really useful to me!

To bring it fully to work, you need to rewrite the rulesets and place it to “~/local/lib/python3/cmk_addons/plugins/mikrotik/rulesets”. Than it will work for the future.