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>
}
}