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.
- Host: GitHub
- URL: https://github.com/samrocketman/monitoring-scripts
- Owner: samrocketman
- License: mit
- Created: 2020-06-02T01:48:09.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2020-10-18T07:12:04.000Z (over 5 years ago)
- Last Synced: 2025-02-24T08:13:34.782Z (over 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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