Certbot renew failure hook

Greetings, I’m trying to figure out how to get notified if the renew failed for a certificate.

As I understand the documentation, the --pre-hook and --post-hook run once per renew for all certificates and the --deploy-hook runs specifically only once for a successfully issued certificate.

We would like to log all successful and more importantly unsuccessful attempts of a renewal per certificate to a database. Is there a hook that would allow me to do that? Having the domains in a variable like the $RENEWED_DOMAINS for the deploy-hook would be great, too.

You can try Cron :joy:

Just specify your email on top of the crontab you have.


What does cron or my email have to do with a failure-hook and logging to database?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.