tiehm / icinga2-discord-notifications

Discord notifications for Icinga2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icinga2-discord-notifications

Go Report Card GitHub license GitHub code style GoDoc doc

Support for Discord notifications for Icinga2.

Usage:
  icinga2-discord-notifications [flags]

Flags:
  -h, --help                        help for icinga2-discord-notifications
      --host-last-state string      host last state
      --host-name string            host name
      --host-state string           host state
      --service-last-state string   service last state
      --service-name string         service name
      --service-output string       service output
      --service-state string        service state
      --webhook string              webhook URL

Use it as a notification plugin command in Icinga. Sample configuration:

object NotificationCommand "discord-webhook" {
    import "plugin-notification-command"
    command = [ "/usr/lib/nagios/icinga2-discord-notifications" ]
    arguments += {
        "--host-last-state" = "$host.last-state$"
        "--host-name" = "$host.name$"
        "--host-state" = "$host.state$"
        "--service-last-state" = "$service.last_state$"
        "--service-name" = "$service.name$"
        "--service-output" = "$service.output$"
        "--service-state" = "$service.state$"
        "--webhook" = <YOUR DISCORD WEBHOOK>
    }
}

About

Discord notifications for Icinga2

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 100.0%