Skip to content

Instantly share code, notes, and snippets.

View bwcarp's full-sized avatar

Blake Carpenter bwcarp

View GitHub Profile
@bwcarp
bwcarp / _icinga-to-irm.md
Last active October 31, 2025 13:26
Grafana IRM Notification Command for Icinga2 (and maybe Nagios)

icinga-to-irm

Although Icinga2 is releasing its own webhook manager in the form of Icinga Notifications, that is not yet considered ready for production use. This is an example of writing a webhook wrapper as a notification command for Icinga, in this case in order to support Grafana's IRM pager service.

For best results, use a Formatted Webhook in Grafana IRM, rather than the standard webhook.

The attached conf file is Icinga2 specific. The python script might work with other Nagios-style monitoring systems, but I haven't tested it.