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

https://github.com/samrocketman/monitoring-scripts

A repository for housing scripts I use for monitoring.
https://github.com/samrocketman/monitoring-scripts

Last synced: about 2 months ago
JSON representation

A repository for housing scripts I use for monitoring.

Awesome Lists containing this project

README

          

# Monitoring Scripts

This script houses monitoring plugins I use in systems monitoring. In many
cases, the scripts here are an updated version from my former employer, [Drexel
University][drexel].

# SSL certificate chain monitoring

SSL certificate chain monitoring requires the following prerequisites.

- bash shell
- OpenSSL
- GNU Awk (available on Mac through homebrew)
- BSD date or GNU date

The following script monitors certificate chains and reports the current status.

./ssl_chain_expiration.sh example.com

Checks an entire certificate chain of a remote service and alerts via exit code
and stdout if any certificate in the remote chain is nearly expired (within 60
days) or expired.

Exit states:

- `0` - success, entire certificate chain is valid for at least 60 days.
- `1` - warning, one of the certificates in the chain has less than 60 days
before expiration.
- `2` - critical, one of the certificates in the chain has expired.

See the full range of options in the help text.

./ssl_chain_expiration.sh --help

[drexel]: https://github.com/samrocketman/drexel-university