1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2025-07-15 23:54:18 +02:00

Rename ou variable

This commit is contained in:
Tomas Dabasinskas
2019-01-25 10:34:41 +02:00
parent 41450add27
commit 0abd32fac6
2 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
subject_emails := cert.EmailAddresses subject_emails := cert.EmailAddresses
subject_ips := cert.IPAddresses subject_ips := cert.IPAddresses
serial_no := cert.SerialNumber.String() serial_no := cert.SerialNumber.String()
ous := cert.Subject.OrganizationalUnit subject_ous := cert.Subject.OrganizationalUnit
if !cert.NotAfter.IsZero() { if !cert.NotAfter.IsZero() {
ch <- prometheus.MustNewConstMetric( ch <- prometheus.MustNewConstMetric(
@ -167,9 +167,9 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
) )
} }
if len(ous) > 0 { if len(subject_ous) > 0 {
ch <- prometheus.MustNewConstMetric( ch <- prometheus.MustNewConstMetric(
subjectOrganizationUnits, prometheus.GaugeValue, 1, serial_no, issuer_cn, ","+strings.Join(ous, ",")+",", subjectOrganizationUnits, prometheus.GaugeValue, 1, serial_no, issuer_cn, ","+strings.Join(subject_ous, ",")+",",
) )
} }
} }