Status data not shown in inventory

Another related question; is there a documentation available on how to write custom inventory-plugins? I can’t find anything.

For example, I would like to add local filesystems, disks and mysql-databases to the hosts inventory. Do I get this right, that I need to create a script in ~/local/share/check_mk/inventory to parse agent-output in a form usable in inventory? Is this probably necessary to use the Status data collected for inventory at all?