Minimal collectd module to report expiry time of a HTTPS TLS certificate.
See collectd.conf
for an example (minimal) config.
<Plugin python>
ModulePath "/path/to/modules/"
Import "tls_cert_monitor"
<Module tls_cert_monitor>
hosts "github.com" "google.com"
</Module>
</Plugin>
demoserver1.tls-cert-monitor.gauge-github.aaakk.us.kg 7848249 1518710150
demoserver1.tls-cert-monitor.gauge-google_com 5848449 1518710151
Test config using collectd -T -C collectd.conf
.