Skip to main content

Description

The tls_cert probe connects to a host via TLS, reads the leaf certificate, and calculates days remaining before expiry. Supports warning and critical thresholds. Certificate verification is intentionally disabled — the probe reads expired or self-signed certificates to report accurate days remaining.

Config fields

FieldTypeRequiredDefaultDescription
typestringYesMust be "tls_cert"
hoststringYesHost for TLS connection and SNI
portintYesTLS port (1–65535)
warningDaysintNo0Days remaining threshold for warning. 0 = no warning
criticalDaysintNo0Days remaining threshold for critical. 0 = no critical alert
If both warningDays and criticalDays are > 0, criticalDays must be ≤ warningDays.

Metrics

MetricTypeUnitDescription
vms.tls_cert.days_remaininggaugedaysDays until cert expiry. -1 if TLS handshake failed

Example config

{
  "type": "tls_cert",
  "host": "app.verolabs.co",
  "port": 443,
  "warningDays": 30,
  "criticalDays": 7
}