1
0
Fork 0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-11-08 16:00:08 +00:00
Small monitoring tool to check URLs for their certificate validity with Prometheus endpoint
Find a file
Knut Ahlers 328cc40d38
Switch to dep for dependency managment, update deps
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-11-05 16:06:22 +01:00
vendor Switch to dep for dependency managment, update deps 2017-11-05 16:06:22 +01:00
.gitignore Initial version 2015-09-04 15:36:49 +02:00
.gobuilder.yml Added documentation 2015-09-04 15:46:43 +02:00
.repo-runner.yaml Add automated building 2017-06-26 15:12:36 +02:00
bindata.go Initial version 2015-09-04 15:36:49 +02:00
cert.go Add status logging for checks 2017-11-05 16:03:26 +01:00
CONTRIBUTING.md Update meta files 2017-06-26 15:27:56 +02:00
display.html Initial version 2015-09-04 15:36:49 +02:00
Dockerfile Update Dockerfile 2016-09-29 11:42:47 +02:00
Gopkg.lock Switch to dep for dependency managment, update deps 2017-11-05 16:06:22 +01:00
Gopkg.toml Switch to dep for dependency managment, update deps 2017-11-05 16:06:22 +01:00
History.md prepare release v0.4.1 2017-06-26 15:12:59 +02:00
http.go Add status logging for checks 2017-11-05 16:03:26 +01:00
LICENSE Update meta files 2017-06-26 15:27:56 +02:00
main.go Add status logging for checks 2017-11-05 16:03:26 +01:00
Makefile Add automated building 2017-06-26 15:12:36 +02:00
promcertcheck Switch to dep for dependency managment, update deps 2017-11-05 16:06:22 +01:00
README.md Update meta files 2017-06-26 15:27:56 +02:00

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

# ./certcheck --help
Usage of ./certcheck:
      --debug[=false]: Output debugging data
      --expire-warning="744h": When to warn about a soon expiring certificate
      --probe=[]: URLs to check for certificate issues

# ./certcheck --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