1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// SPDX-License-Identifier: GPL-3.0-or-later
package x509check
import "github.com/netdata/netdata/go/go.d.plugin/agent/module"
var (
baseCharts = module.Charts{
timeUntilExpirationChart.Copy(),
}
withRevocationCharts = module.Charts{
timeUntilExpirationChart.Copy(),
revocationStatusChart.Copy(),
}
timeUntilExpirationChart = module.Chart{
ID: "time_until_expiration",
Title: "Time Until Certificate Expiration",
Units: "seconds",
Fam: "expiration time",
Ctx: "x509check.time_until_expiration",
Opts: module.Opts{StoreFirst: true},
Dims: module.Dims{
{ID: "expiry"},
},
Vars: module.Vars{
{ID: "days_until_expiration_warning"},
{ID: "days_until_expiration_critical"},
},
}
revocationStatusChart = module.Chart{
ID: "revocation_status",
Title: "Revocation Status",
Units: "boolean",
Fam: "revocation",
Ctx: "x509check.revocation_status",
Opts: module.Opts{StoreFirst: true},
Dims: module.Dims{
{ID: "revoked"},
},
}
)
|