Documentation
¶
Overview ¶
factum-icinga-notifications is the Icinga2 NotificationCommand invoked directly by icinga2 whenever a host/service alarm fires. It builds an HTML alert email (alarm details plus a live "hosts/services currently down" summary from the Icinga API) from a Go html/template on disk, and sends it over SMTP.
Unlike every other cmd/* binary, this one does NOT use github.com/GiGurra/boa/spf13/cobra - Icinga invokes it with its own fixed flag shape (-d, -l, -r, -t, --HOSTNAME, a bare --SERVICE sentinel, ...), which collides with boa's global -d/-l (Debug/Loglevel, present on every other cmd/* binary). Args are parsed directly with github.com/jessevdk/go-flags instead, using the same short/long flag names as the Python script this replaces so existing Icinga2 NotificationCommand definitions don't need to change.