Skip to content

mlabouardy/icinga2-slack-bot

Repository files navigation

Icinga2 Slack Bot CircleCI Go Report Card Gitter chat MIT License

This bot uses Icinga2 remote API to fetch the status of the services & hosts running in icinga2

Requirements

  • Go >= 1.8.0
  • Icinga2 with API feature enabled

Deploy

To deploy your icinga2 bot to Slack, you need to:

  • Create a new bot user integration on Slack and get your token
  • Setup icinga2 credentials & slack token in config.toml file
  • Execute go run $(ls -1 *.go | grep -v _test.go)

With Docker

$ git clone [email protected]:mlabouardy/icinga2-slack-bot.git
$ cd icinga2-slack-bot
$ docker build -t icinga2-bot .
$ docker run -d --name bot icinga2-bot

or just use the official DockerHub image:

$ docker run -d -v /PATH/TO/config.toml:/go/src/github/config.toml --name bot mlabouardy/icinga2-bot:slack

Available commands

alt text

Get all hosts

alt text

Filter by host name

alt text

Get all services

alt text

Filter by service name

alt text

Features

  • All hosts status
  • Single host status
  • All services status
  • Single service status
  • Docker support

Contributors

  • Mohamed Labouardy

Releases

No releases published

Packages

No packages published

Languages