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_com 7848249 1518710150
demoserver1.tls-cert-monitor.gauge-google_com 5848449 1518710151
Test config using collectd -T -C collectd.conf
.