1
0
Fork 0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-11-08 07:50:05 +00:00
Small monitoring tool to check URLs for their certificate validity with Prometheus endpoint
Find a file
Knut Ahlers 357693db38
Introduce /httpStatus endpoint
which will respond with HTTP200 if everything is fine or HTTP500 if one
or more certificates are broken

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-06-26 15:08:54 +02:00
Godeps Update rconfig, use duration parsing from rconfig 2017-06-26 15:04:28 +02:00
vendor Update rconfig, use duration parsing from rconfig 2017-06-26 15:04:28 +02:00
.gitignore Initial version 2015-09-04 15:36:49 +02:00
.gobuilder.yml Added documentation 2015-09-04 15:46:43 +02:00
bindata.go Initial version 2015-09-04 15:36:49 +02:00
cert.go Update rconfig, use duration parsing from rconfig 2017-06-26 15:04:28 +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
History.md prepare release v0.3.0 2016-09-29 11:43:24 +02:00
http.go Introduce /httpStatus endpoint 2017-06-26 15:08:54 +02:00
LICENSE Added documentation 2015-09-04 15:46:43 +02:00
main.go Introduce /httpStatus endpoint 2017-06-26 15:08:54 +02:00
Makefile Move docker image to alpine 2016-01-26 00:41:56 +01:00
promcertcheck Dockerized application 2015-09-04 16:33:38 +02:00
README.md Added JSON output 2015-09-04 15:54:08 +02:00

Luzifer / PromCertcheck

License: Apache v2.0

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

  • / - Shows you a human readable version of the check data
  • /metrics - Prometheus compatible output of the check data
  • /results.json - Gives you a JSON version of the check results including certificate details