https-certificate-validity

command
v0.0.0-...-50172b1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

https证书即将过期则告警

配置文件
telegtaf
; 添加到 /etc/telegraf/telegraf.conf
[[inputs.exec]]
  commands = ["/etc/telegraf/https-certificate-validity"]
  timeout = "5s"
  name_suffix = "_https_certificate_validity"
  data_format = "json"
  data_type = "integer"
sudo systemctl stop telegraf && sudo systemctl start telegraf
[centos@hostname telegraf]$ ./https-certificate-validity
{
    "data": {
        "name_1": 329,
        "name_2": 329
    },
    "errs_count": 0,
    "errs": []
}

[centos@hostname ~]$ telegraf -input-filter exec -test
> exec_https_certificate_validity,host=hostname domains_name_1=329,domains_name_2=329,errs_count=0 0000000000000000000
下载程序

Documentation

Overview

* create time 2021-12-21 * update time 2022-11-22

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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