You've already forked ssl_exporter
mirror of
https://github.com/ribbybibby/ssl_exporter.git
synced 2025-07-15 23:54:18 +02:00
Fix ssl_verified_cert_not_after typo
This commit is contained in:
@ -55,7 +55,7 @@ var (
|
|||||||
[]string{"chain_no", "serial_no", "issuer_cn", "cn", "dnsnames", "ips", "emails", "ou"}, nil,
|
[]string{"chain_no", "serial_no", "issuer_cn", "cn", "dnsnames", "ips", "emails", "ou"}, nil,
|
||||||
)
|
)
|
||||||
verifiedNotAfter = prometheus.NewDesc(
|
verifiedNotAfter = prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(namespace, "", "verfied_cert_not_after"),
|
prometheus.BuildFQName(namespace, "", "verified_cert_not_after"),
|
||||||
"NotAfter expressed as a Unix Epoch Time for a certificate in the list of verified chains",
|
"NotAfter expressed as a Unix Epoch Time for a certificate in the list of verified chains",
|
||||||
[]string{"chain_no", "serial_no", "issuer_cn", "cn", "dnsnames", "ips", "emails", "ou"}, nil,
|
[]string{"chain_no", "serial_no", "issuer_cn", "cn", "dnsnames", "ips", "emails", "ou"}, nil,
|
||||||
)
|
)
|
||||||
|
@ -810,7 +810,7 @@ func checkVerifiedChainDates(verifiedChains [][]*x509.Certificate, body string)
|
|||||||
"ou=\",ribbybibbys org,\"",
|
"ou=\",ribbybibbys org,\"",
|
||||||
"serial_no=\"" + cert.SerialNumber.String() + "\"",
|
"serial_no=\"" + cert.SerialNumber.String() + "\"",
|
||||||
}, ",") + "} " + notAfter
|
}, ",") + "} " + notAfter
|
||||||
if ok := strings.Contains(body, notAfter); !ok {
|
if ok := strings.Contains(body, notAfterMetric); !ok {
|
||||||
return fmt.Errorf("expected `%s` in: %s", notAfterMetric, body)
|
return fmt.Errorf("expected `%s` in: %s", notAfterMetric, body)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user