x509check

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: GPL-3.0 Imports: 11 Imported by: 1

README

x509 certificate expiry check

Checks the time until a x509 certificate expires.

It produces the following charts:

  1. Time Until Certificate Expiration in seconds
  • expiry
configuration

For all available options and defaults please see module configuration file.


update_every : 60

jobs:
  - name: example_org
    source: https://example.org:443
  
  - name: my_site_org
    source: https://my_site_org:443
    
  - name: my_local_cert
    source: file:///home/me/cert.pem

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Charts

type Charts = module.Charts

Charts is an alias for module.Charts

type Config

type Config struct {
	web.ClientTLSConfig `yaml:",inline"`
	Timeout             web.Duration
	Source              string
	DaysUntilWarn       int `yaml:"days_until_expiration_warning"`
	DaysUntilCrit       int `yaml:"days_until_expiration_critical"`
}

Config is the x509Check module configuration.

type Dims

type Dims = module.Dims

Dims is an alias for module.Dims

type Vars

type Vars = module.Vars

Vars is an alias for module.Vars

type X509Check

type X509Check struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

X509Check X509Check module.

func New

func New() *X509Check

New creates X509Check with default values

func (X509Check) Charts

func (X509Check) Charts() *Charts

Charts creates Charts.

func (*X509Check) Check

func (x *X509Check) Check() bool

Check makes check.

func (X509Check) Cleanup

func (X509Check) Cleanup()

Cleanup makes cleanup.

func (*X509Check) Collect

func (x *X509Check) Collect() map[string]int64

Collect collects metrics.

func (*X509Check) Init

func (x *X509Check) Init() bool

Init makes initialization.

Jump to

Keyboard shortcuts

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