mirror of
https://github.com/Luzifer/promcertcheck.git
synced 2024-11-08 16:00:08 +00:00
Added documentation
This commit is contained in:
parent
998a6cb7b5
commit
d7f96cafdb
4 changed files with 43 additions and 0 deletions
3
.gobuilder.yml
Normal file
3
.gobuilder.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
general:
|
||||
ldflags:
|
||||
- "-X main.version $(git describe --tags)"
|
13
LICENSE
Normal file
13
LICENSE
Normal file
|
@ -0,0 +1,13 @@
|
|||
Copyright 2015 Knut Ahlers <knut@ahlers.me>
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
25
README.md
Normal file
25
README.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Luzifer / PromCertcheck
|
||||
|
||||
[![License: Apache v2.0](https://badge.luzifer.io/v1/badge?color=5d79b5&title=license&text=Apache+v2.0)](http://www.apache.org/licenses/LICENSE-2.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
|
||||
|
||||
```bash
|
||||
# ./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
|
||||
```
|
2
main.go
2
main.go
|
@ -58,6 +58,8 @@ func main() {
|
|||
registerProbes()
|
||||
refreshCertificateStatus()
|
||||
|
||||
fmt.Printf("PromCertcheck %s...\nStarting to listen on 0.0.0.0:3000\n", version)
|
||||
|
||||
c := cron.New()
|
||||
c.AddFunc("0 0 * * * *", refreshCertificateStatus)
|
||||
c.Start()
|
||||
|
|
Loading…
Reference in a new issue