
object NotificationCommand "alarm-host-by-hipchat" { execute = PluginNotification command = [ "/etc/icinga2/scripts/host-by-hipchat.sh" ] arguments = { "-a" = "$address$" "-b" = "$notification.author$" "-c" = "$notification.comment$" "-l" = "$host.name$" "-o" = "$host.output$" "-s" = "$host.state$" "-t" = "$notification.type$" } }
5 Comments
Hi Marianne!
Klasse Artikel! Ich habe das übrigens so gemacht, dass ich wenn ein PIR in OpenHAB eine Bewegung erkennt, ein Snapshot der entsprechenden IP Kamera abgegriffen wird und mir über das Telegram Binding geschickt wird. Das war mir etwas zuverlässiger als über HipChat da nicht immer die Notifications durchkommen.
Viele Grüße!
Hey!
Neuling hier. Ich möchte ebenfalls Hipchat Benachrichtigungen von icinga2 bekommen und habe deine Anleitung genau so umgesetzt. Nur meckert icinga bei der Statusabfrage, dass er die PluginNotification (im command.conf „execute = PluginNotification“) nicht kennt – und ich kann mir auch nicht erklären was das sein soll oder woher es kommt. Kannst du mir da auf die Sprünge helfen?
Danke dir!