HW/SW Inventory - add functionality?

Hi,

I wonder if it is possible to populate the checkmk inventory with extra information from a custom script?

Regards,
Anders Blomgren

Yes it is possible.

Unfortunately it is not documented well as of now, @mschlenker

Ah, great. Do I need to edit mk_inventory.vbs script or can I add an extra script?

Do you have any example?

Regards,
Anders

At the time I edited the vbs file. I only needed to replace an existing value, not add extra rows with info to it. I also changed Const CMK_VERSION so I could see if my changed vbs was used or not.

But I assume that you can add the extra rows in an existing section call block, as long as the output has the same output format column wise for that specific section.

We are planning to add quite a lot of information to the inventory and different depending of server type. Anyone done anything similar?

I am aware of this. To be transparent: It makes no sense to document the pre 2.3.0 behavior and API anymore since this will be soon deprecated. The good news: We plan to document all new APIs starting with updating existing articles between April and September. This will also include a comprehensive documentation of extending the inventory with self-made plugins.