icinga2-slack-bot

command module
v0.0.0-...-6711ae9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2017 License: MIT Imports: 11 Imported by: 0

README

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 git@github.com: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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL