Skip to content

BrunoTh/checkmk-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkmk-telegram

Receive checkmk notifications via Telegram.

How to use

  1. Install the mkp.

  2. Create a Telegram Bot using @BotFather (https://core.telegram.org/bots#6-botfather)

  3. Create a new notification rule and select Telegram as Notification Method and paste the Bot Token you got from @BotFather.

  4. Add the Telegram Username to the users that are going to receive notification via Telegram. Just go to Setup > Users and edit the users. Enter the Telegram usernames into the Field Telegram Username.

Development

Requirements

For the best development experience I recommend VSCode.

Preparation

  1. Download and import the Docker image:

    $ docker load -i <path_to>/check-mk-enterprise-docker-2.0.0.demo.tar.gz
    
  2. Open the folder in the Dev Container: Ctrl+Shift+P: > Remote-Container: Open Folder in Container...

  3. Install pylint after the container is configured. A notification should pop up where you can do so. This will be fixed in the future.

Access the local checkmk instance

The Docker container exposes the port 5000 to access the checkmk instance: http://localhost:5000/cmk

If the instance is not accessible, check if it is running (omd status and omd start cmk)

To log into the instance use the credentials:

Username: cmkadmin
Password: cmkadmin

Build and Test your changes

Use the task Build and install mkp to pack and install the mkp. This is also the default build task (Tasks: Run Build Task or Ctrl+Shift+B).

About

Receive checkmk notifications via Telegram.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages