An open API service indexing awesome lists of open source software.

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

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