Folder locations for pure inventory plugin

Hi there,

I created an inventory plugin which lists the vlans which are available on a specific switch port. It took some time but now it works.
When it came to distributing the pkg I had troubles.
The documentation says to create the file under local/lib/check_mk/base/plugins/agent_based. After confirming the plugin worked I tried to do mkp create package and afterwards mkp find.
The package file lists a lot of files under “agent based” but nothing under inventory (which is shown in the documentation).
Should the files remain under the folder agent_based or should I move the files to inventory (given that the plugin is not working any more because of missing imports)? Is there even a reason for the inventory folder (except legacy)?

Kind regards


1 Like

With 2.0 there is no own directory anymore for inventory or check plugin.
All plugins written for 2.0 API are inside “local/lib/check_mk/base/plugins/agent_based”.

The old inventory folder is needed for legacy API inventory plugins.