As we implemented the MikroTik Plugin from Exchange made by @ttr we ran in some problem about the section BGP of the plugin from the version 7.18.x.
I have made a debug and i have see that the API answer ‘!empty’ when the section is empty and no output.
I have changed the agent mikrotik function “myapi” like this:
def myapi(command):
for step in command:
apiros.writeSentence([step])
result=
while True:
new = apiros.readSentence()
if ‘!empty’ in new:
continue
if len(new) > 1:
result.append(list2dict(new))
else:
if opt_debug == True:
print(‘\n# DEBUG_OUTPUT myapi(%s)’ % command)
pprint.pprint(result)
print(‘\n# DEBUG_OUTPUT myapi(%s)’ % command)
return result
If you want you can make the plugin opensource and i can contribute to mantain it becausa it’s the only plugin for mikrotik that test all the features.
You have to add before the line 241 in the file “agent_mikrotk” that is in directory local/share/check_mk/agents/special this:
if '!empty' in new:
continue
And the plugin will work again.
For your purpose i add the correct file into this reply and you have to replace it ( i have to added the .txt extension but you have to remove it before upload ).
If there is someone who actively maintains this plugin it would be great if the plugin can monitor Wireless interfaces parameters (like signal quality etc.)