Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Gozap/certmonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dc34528 · Nov 22, 2019

History

28 Commits
Nov 22, 2019
Nov 22, 2019
Nov 22, 2019
Nov 22, 2019
Oct 8, 2018
Nov 22, 2019
Oct 8, 2018
Nov 22, 2019
Oct 9, 2018
Nov 22, 2019
Nov 22, 2019
Nov 22, 2019
Nov 22, 2019

Repository files navigation

certmonitor

A simple website certificate monitor tool

How to use?

For general user

You can download the pre-compiled binaries for the corresponding platform from release page. Next create a configuration file named certmonitor.yaml, like this:

alarm:
- type: smtp
  targets:
  - your_email_address
monitor:
  websites:
  - https://google.com
  cron: '@every 10s'
  beforetime: 168h0m0s
smtp:
  username: your_email_address
  password: "password"
  from: your_email_address
  server: "smtp_server:465"

Finally run it(Suppose the file you downloaded is named certmonitor_linux_amd64):

chmod +x certmonitor_linux_amd64
./certmonitor_linux_amd64

For docker user(Advanced)

build docker image

export version=v1.0.1
make docker

create a config named certmonitor.yaml

alarm:
- type: smtp
  targets:
  - your_email_address
monitor:
  websites:
  - https://google.com
  cron: '@every 10s'
  beforetime: 168h0m0s
smtp:
  username: your_email_address
  password: "password"
  from: your_email_address
  server: "smtp_server:465"

run a container

docker run -dt --name cermonitor -v ./certmonitor.yaml:/certmonitor.yaml gozap/certmonitor:v1.0.1