I have to monitor the expiration of some SSL Certificates and was making some tests with heartbeat.
I know that if you have a http monitor using ssl and the ca certificate you will be able to have the expiration date of the certificate on the field
tls.certificate_not_valid_after, something like that:
- type: http schedule: '@every 60m' tags: ["https"] urls: ["https://SITE:443"] ssl: certificate_authorities: ["/path/to/the/CA.crt"]
But I would need to have the CA certificate file on the server, I was wondering if it is possible to have a monitor that works like the
check_http plugin from nagios, where you pass the site as a parameter and it returns the expiration date.