https://github.com/opusvl/check_cert
Nagios plugin to check a HTTPS/SSL certificate
https://github.com/opusvl/check_cert
certificates icinga-plugin nagios nagios-plugin
Last synced: over 1 year ago
JSON representation
Nagios plugin to check a HTTPS/SSL certificate
- Host: GitHub
- URL: https://github.com/opusvl/check_cert
- Owner: OpusVL
- License: gpl-3.0
- Created: 2020-05-26T18:48:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T15:10:01.000Z (almost 6 years ago)
- Last Synced: 2025-01-20T17:35:08.634Z (over 1 year ago)
- Topics: certificates, icinga-plugin, nagios, nagios-plugin
- Language: Shell
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nagios Plugin Check HTTPS/SSL Certificate Expiry Date
## check_cert.sh
This plugin uses `curl` to extract certificate details from the host. It reports on the number of days remaining until expiry or negative numbers indicate it has expired.
### Usage
```text
Usage: check_cert.sh -H host [OPTIONS]
Options:
-c,--critical days minimum number of days a certificate has to be valid to issue a critical status
-h,--help a help message
-V,--version version
-w,--warning days minimum number of days a certificate has to be valid to issue a warning status
```
### Dependencies
curl
## check_xmpp.sh
This plugin uses dig to establish the location of the XMPP server and then uses openssl to connect and retrieve the certificate.
### XMPP Usage
```text
Usage: check_xmpp.sh -H host [OPTIONS]
Options:
-c,--critical days minimum number of days a certificate has to be valid to issue a critical status
-h,--help a help message
-V,--version version
-w,--warning days minimum number of days a certificate has to be valid to issue a warning status
```
### XMPP Dependencies
dig
openssl