certmonitor

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL