tom-mi / python-mkp

Pack and unpack Check_MK mkp files
GNU General Public License v2.0
9 stars 6 forks source link

Add directories 'lib' and 'agent_based' #9

Open nedjitef opened 3 years ago

nedjitef commented 3 years ago

I tried to unpack an mkp, which included bakery plugins. These haven't been unpacked but just the agent plugin and web plugin. The check wasn't extracted as well.

I used code similar to that in README.mk on a mkp for 2.0.0 (developed and testet on 2.0.0p3), so I'm making use of the new API.

#!/usr/bin/env python3

from sys import argv
import mkp

package = mkp.load_file(argv[1])
print(package.info)
package.extract_files('.')

Maybe this affects packaging too and maybe it's worth to support.

nedjitef commented 3 years ago

As it turns out, the package contains the archives 'lib' and 'agent_based', so I changed the title

gizmo84 commented 2 years ago

Same issue here. @tom-mi could you please merge #10 and make a new release?

gizmo84 commented 2 years ago

Hello @tom-mi, could you please considere merging #10 and make a new release ? With checkmk 2.0 and the new special agent this is a must have :) Can I somehow help managing your repo / release process ?