GithubHelp home page GithubHelp logo

bashclub / check_mk_matrix_notifications Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 4.0 360 KB

A Fork of 'check_mk_matrix_notifications' from Stanislav N. aka pztrn (https://gitlab.com/pztrn/check_mk_matrix_notifications) sends checkmk notifications to a matrix chat server.

Home Page: https://sysops.tv

License: MIT License

Python 100.00%
checkmk-extension checkmk omd matrix-org matrix synapse monitoring notification-service

check_mk_matrix_notifications's Introduction

Check_mk notifications in Matrix

This scripts gives your Check_mk installation a possibility to send notifications into Matrix chatroom.

Installation

To install this script do the following:

  1. Copy matrix.py file contents into clipboard.
  2. Execute omd su SITENAME, where SITENAME is a site name for OMD. If you're using check_mk installed from source - skip this step.
  3. Open ~/local/share/check_mk/notifications/matrix.py for editing and paste matrix.py file contents into it. Make it executable (chmod +x ~/local/share/check_mk/notifications/matrix.py). Check_mk installed from source can place it's files somewhere else and admins of these installations should figure out by themselves where to put this file.

Dependencies

This script has no dependencies except Python 3. It was written specifically to be very compact and understandable.

Configuration

This script will send notifications as user, so you should create a separate user for it. Consult your homeserver's documentation about instructions.

You'll need these parameters:

  • Homeserver URL - this is what you're specifying in Riot and other clients.
  • Notification bot user's token. To get it log in as created user, tap on settings icon in bottom left part of Riot and scroll in the very end.
  • Room ID. It's available in room settings.

After obtaining all of them you should create new notification with parameters like this:

Check_mk notifications configuration

Where 1st parameter is a homeserver URL (with http or https), second parameter is a bot user's access token and third parameter is a room ID.

How it will look like?

Check_mk notifications example

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.