Giter VIP home page Giter VIP logo

icinga2-slack-notification's Introduction

slack notifications for icinga2

This is my perl implemenation of a slack service notification handler for icinga2. It was heavily inspired by https://github.com/jjethwa/icinga2-slack-notification/blob/master/slack-service-notification.sh.

Dependencys

  • WebService::Slack::WebApi
  • Config::IniFiles
  • Switch

Installation and configuration

Drop slack-notification and slack-notification.ini into /etc/icinga2/scripts. Then get yourself an API token at http://api.slack.com/web and add into the configuration file.

You also have to insert the hostname of your icingaweb2 installation into General/WebHostname.

You can also adjust the channel used by the notification handler (General/Channel).

slack.conf contains example user/group/command/notification objects, drop it into conf.d and adapt it to your needs.

Message formatting

You can add your own emojis to the various servicestates. Just Edit Format/SERVICESTATE. See https://github.com/iamcal/emoji-data for a list of supported emojis.

TODO

If someone really uses that, the following things would be nice:

  • make message configurable via template
  • add proper host notification
  • some error handling

icinga2-slack-notification's People

Contributors

formorer avatar

Stargazers

 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.