| 1 | |
| 2 | template: x509check_days_until_expiration |
| 3 | on: x509check.time_until_expiration |
| 4 | class: Latency |
| 5 | type: Certificates |
| 6 | component: x509 certificates |
| 7 | calc: $expiry / 86400 |
| 8 | units: days |
| 9 | every: 60s |
| 10 | warn: $this < 14 |
| 11 | crit: $this < 7 |
| 12 | summary: SSL cert expiring soon (${label:source} cn:${label:common_name}) |
| 13 | info: SSL cert expiring soon (${label:source} cn:${label:common_name}) |
| 14 | to: webmaster |
| 15 | |
| 16 | template: x509check_revocation_status |
| 17 | on: x509check.revocation_status |
| 18 | class: Errors |
| 19 | type: Certificates |
| 20 | component: x509 certificates |
| 21 | calc: $revoked |
| 22 | units: status |
| 23 | every: 60s |
| 24 | crit: $this == 1 |
| 25 | summary: SSL cert revoked (${label:source}) |
| 26 | info: SSL cert revoked (${label:source}) |
| 27 | to: webmaster |