1
0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-09-19 17:32:57 +00:00
promcertcheck/README.md
Knut Ahlers 96194f9f93
Update README
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-11-05 17:42:38 +01:00

44 lines
2.1 KiB
Markdown

[![Go Report Card](https://goreportcard.com/badge/github.com/Luzifer/promcertcheck)](https://goreportcard.com/report/github.com/Luzifer/promcertcheck)
![](https://badges.fyi/github/license/Luzifer/promcertcheck)
![](https://badges.fyi/github/downloads/Luzifer/promcertcheck)
![](https://badges.fyi/github/latest-release/Luzifer/promcertcheck)
# Luzifer / PromCertcheck
This project contains a small monitoring tool to check URLs for their certificate validity. The URLs are polled once per hour and the certificates from that URLs are validated against the root certificates available to the program. (Provided by the operating systems distributor or manually set by you if you're using a docker container.)
## Features
- Validates the certification chain including provided intermediate certificates
- Warns before the certificates expires
- Gives a handy overview over all monitored URLs
- Data is made available in Prometheus readable format for monitoring
## Usage
```bash
# ./promcertcheck --help
Usage of ./promcertcheck:
--expire-warning duration When to warn about a soon expiring certificate (default 744h0m0s)
--log-level string Verbosity of logs to use (debug, info, warning, error, ...) (default "info")
--probe stringSlice URLs to check for certificate issues
--roots-dir string Directory to load custom RootCA certs from to be trusted (*.pem)
--version Print program version and exit
# ./promcertcheck --probe=https://www.google.com/ --probe=https://www.facebook.com/
PromCertcheck dev...
Starting to listen on 0.0.0.0:3000
```
## URLs
| Endpoint | Description |
| ---- | ---- |
| `/` | Shows you a human readable version of the check data |
| `/httpStatus` | Endpoint for simple automated health checks: Delivers `HTTP200` in case everything is fine or `HTTP500` when one or more certificates are broken |
| `/metrics` | Prometheus compatible output of the check data |
| `/results.json` | Gives you a JSON version of the check results including certificate details |
----
![](https://d2o84fseuhwkxk.cloudfront.net/promcertcheck.svg)