How to send data to external webhook on alert

I have an icinga notification and I would like it to also notify an external webhook when an alert is triggered. What mechanism is there to communicate with external services on events?

you can always use event handlers :
https://icinga.com/docs/icinga2/latest/doc/03-monitoring-basics/#event-commands

Hi,

you can also write a custom notification script, create a NotificationCommand for it, add a user (dummy obviously) and finally apply a notification where applicable (use use assign where true for any target object).

The most simplest approach would be bash and curl, if you’re more into programming, I’d say python & requests is a good way.

Cheers,
Michael

Or you can go the other way round. Let your external tool connect to the API and subscribe to the event stream.

Welcome, to the community, by the way!

Cheers,
Thomas

1 Like