GithubHelp home page GithubHelp logo

checkmk_template's Introduction

Checkmk extension for ...

build flake8 pytest

Description

This is a template to develop Checkmk Extensions

Development

For the best development experience use VSCode with the Remote Containers extension. This maps your workspace into a checkmk docker container giving you access to the python environment and libraries the installed extension has.

Directories

The following directories in this repo are getting mapped into the Checkmk site.

  • agents, checkman, checks, doc, inventory, notifications, pnp-templates, web are mapped into local/share/check_mk/
  • agent_based is mapped to local/lib/check_mk/base/plugins/agent_based
  • nagios_plugins is mapped to local/lib/nagios/plugins

Continuous integration

Local

To build the package hit Crtl+Shift+B to execute the build task in VSCode.

pytest can be executed from the terminal or the test ui.

Github Workflow

The provided Github Workflows run pytest and flake8 in the same checkmk docker conatiner as vscode.

checkmk_template's People

Contributors

jiuka avatar simonmeggle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

checkmk_template's Issues

Nagios Core is crashing / starting with errror exitcode when starting the site

Hy @jiuka, first of all thanks for this template. I'm trying to build a snmp plugin for a different kind of PDu ( and im using your plugins as example.
So far so good. But i struggle with the dev container. whenever i start the site the Nagios part is kinda starting with an error.

Starting mkeventd...OK
Starting rrdcached...OK
Starting npcd...OK
Starting nagios.............ERROR
Starting apache...OK
Starting redis...OK
Initializing Crontab...OK

but it works.
as long as i don't change anything on the site. ( also the nagios.log seems fine)
as soon as i add a host ( or try to change anything else and i want to apply those changes the nagios core crashes and i lose the connection to the site. and i have to restart the nagios core in the cli and remove the .lock file first.
So somethings really odd here and i can't get my hear around it wehre to look, or where to start investigating. :/

Maybe you have an Idea
nagios.log

Typo in build script

Line 6 in the build script appears to have a typo.

-   /omd/sites/cmk/var/cat  check_mk/packages/${NAME}-*.mkp \
+   /omd/sites/cmk/var/check_mk/packages/${NAME}-*.mkp \

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.