I need to modify a plugin, brocade_mlx, to work in version 2.4. What I need to change in the plugin is modify the brocade_mlx_states , is it a dictionary, so it returns a different Checkmk state for one of the entries.
My issue is that I can find a script called brocade_mlx in /omd/sites//share/check_mk/checks but the file doesn’t have the .py extension which all plugin files are supposed to have in v 2.4
So where am I supposed to find the v2.4 plugin files please ?
The file you found is the legacy check file.
Now you have two options.
1 - the clean way but more time consuming - you need to port this legacy check to the new check API and place the migrated script then inside ~/local/lib/python3/cmk/plugins/collection/agent_based/ with name “brocade_mlx.py”
2 - the quick and dirty way - you can patch the file directly in your current CMK version. But you need to do this with every update until you upgrade to 2.5. Then this check needs to be migrated by the CMK people