Icinga / icingaweb2-module-x509

Keeps track of certificates as they are deployed in a network environment.
https://icinga.com/docs/x509/latest/
GNU General Public License v2.0
105 stars 23 forks source link

Add automatic alerts when any certificates expires within a given threshold #229

Closed gettoknowmii closed 7 months ago

gettoknowmii commented 7 months ago

it would great for this module to send alerts as well. Can we add alerting functionality to this module?

slalomsk8er commented 7 months ago

Right now the architecture is set up, so that one creates a normal services and as check command, icingacli is used to query the state of the certificate in question.

'/usr/bin/icingacli' 'x509' 'check' 'host' '--critical' '3d' '--host' 'icinga.example.com' '--ip' '10.5.69.77' '--port' '5665' '--warning' '7d' So, it utilizes the normal Icinga2 notifications.

It's also possible to automate the creation of the services with the director module as x509 provides a import source.

Maybe in the future, the planed notification module can directly be utilized form the x509 module to send out alerts without the need to create services.

nilmerg commented 7 months ago

I find this question surprising, given the fact that there's an entire chapter about this in the documentation explaining thoroughly how it works.

Anyway, thank you Dominik!