Skip to main content

Pack and unpack Check_MK mkp files

Project description


ci release

Pack or unpack Check_MK mkp files.

The purpose of this library is to generate mkp files from source without having to set up a complete Check_MK instance. It is not intended for installing mkp files to a Check_MK site.


pip install mkp


Automatically pack mkp package

Create a executable script in the the top directory, e.g.

#!/usr/bin/env python

from mkp import dist

    'author': 'John Doe',
    'description': 'Test the automatic creation of packages',
    'download_url': '',
    'name': 'test',
    'title': 'Test',
    'version': '1.0',
    'version.min_required': '1.2.3',

Create a directory structure as follows:

├── agents/
├── checkman/
├── checks/
├── doc/
├── inventory/
├── notifications/
├── pnp-templates/
├── web/

Empty directories can be omitted. Running will pack all files in the directories listed above to a mkp package with the canonical name and the specified metadata. The mkp file will be written to the dist directory.

Extract mkp package

import mkp

package = mkp.load_file('foo-1.0.mkp')

Pack files to mkp package

In contrast to dist, this provides the possibility to manually select the files by replacing find_files. It is also possible to choose a different output filename.

import mkp

info = {
  'author': 'tom-mi',
  'description': 'Test the system',
  'download_url': '',
  'files': mkp.find_files('path/to/files'),
  'name': 'test',
  'title': 'Test',
  'version': '1.0',
  'version.min_required': '1.2.3',
mkp.pack_to_file(info, 'path/to/files', 'test-1.0.mkp')


This software is licensed under GPLv2.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mkp, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size mkp-0.5-py2.py3-none-any.whl (11.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page