Receive checkmk notifications via Telegram.
-
Install the mkp.
-
Create a Telegram Bot using @BotFather (https://core.telegram.org/bots#6-botfather)
-
Create a new notification rule and select
Telegram
as Notification Method and paste the Bot Token you got from @BotFather. -
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.
For the best development experience I recommend VSCode.
- Docker
- Docker image of Checkmk 2.0.0 Free Edition: https://checkmk.com/download
- VSCode Extension: Dev Container
-
Download and import the Docker image:
$ docker load -i <path_to>/check-mk-enterprise-docker-2.0.0.demo.tar.gz
-
Open the folder in the Dev Container: Ctrl+Shift+P:
> Remote-Container: Open Folder in Container...
-
Install pylint after the container is configured. A notification should pop up where you can do so. This will be fixed in the future.
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
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).