Coder Social home page Coder Social logo

icinga2-telegram's Introduction

Icinga 2 Notifications to Telegram

The repository shows how to configure Icinga 2 to send notifications via Telegram.

These can be send either to:

  • Group Chats
  • Personal User Chat

Please note that only the transport is encrypted, but not the actual messages. (They can be seen by Telegram employees).

Start by creating a new bot.

When you first message the bot with /start or add it to a group, you can get updates via the Telegram API, to get the Chat ID you want to sent messages to.

curl --silent "https://api.telegram.org/bot${TOKEN}/getUpdates"

Use this chat ID to add it to a user.

Checkout the example files to configure Icinga 2:

Screenshot

Screenshot

Attribution

These scripts and examples are based on a blog post: http://metz.gehn.net/2016/01/monitoring-notifications-via-telegram/

Please check out his post too, I just refitted it to fit my needs.

License

Since the original Author didn't pick a license; but put it public, I will choose CC-BY

Copyright (c) 2016 Stefan Gehn <[email protected]>

Creative Commons Attribution 2.0 Generic (CC BY 2.0)
https://creativecommons.org/licenses/by/2.0/

You are free to:

* Share — copy and redistribute the material in any medium or format
* Adapt — remix, transform, and build upon the material
  for any purpose, even commercially.

The licensor cannot revoke these freedoms as long as you follow the license terms.

Under the following terms:

* Attribution — You must give appropriate credit, provide a link to the license,
  and indicate if changes were made. You may do so in any reasonable manner,
  but not in any way that suggests the licensor endorses you or your use.

No additional restrictions — You may not apply legal terms or technological measures
that legally restrict others from doing anything the license permits.

icinga2-telegram's People

Contributors

dheckl avatar lazyfrosch avatar

Watchers

 avatar

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.