
 template: x509check_days_until_expiration
       on: x509check.time_until_expiration
    class: Latency
     type: Certificates
component: x509 certificates
     calc: $expiry / 86400
    units: days
    every: 60s
     warn: $this < 14
     crit: $this < 7
  summary: SSL cert expiring soon (${label:source} cn:${label:common_name})
     info: SSL cert expiring soon (${label:source} cn:${label:common_name})
       to: webmaster

 template: x509check_revocation_status
       on: x509check.revocation_status
    class: Errors
     type: Certificates
component: x509 certificates
     calc: $revoked
    units: status
    every: 60s
     crit: $this == 1
  summary: SSL cert revoked (${label:source})
     info: SSL cert revoked (${label:source})
       to: webmaster
