From 78d04c39690cf0d8875a2ddb72ec66f5b0da4489 Mon Sep 17 00:00:00 2001 From: Will Bollock Date: Sat, 24 Sep 2022 20:32:26 -0400 Subject: [PATCH] fix: variable name typo --- nagios_exporter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nagios_exporter.go b/nagios_exporter.go index f9d3a94..f36c07d 100644 --- a/nagios_exporter.go +++ b/nagios_exporter.go @@ -411,7 +411,7 @@ func (e *Exporter) QueryAPIsAndUpdateMetrics(ch chan<- prometheus.Metric, sslVer servicesTotal, prometheus.GaugeValue, float64(serviceStatusObject.Recordcount), ) - var servicesCount, servicessCheckedCount, servicesScheduledCount, servicesActiveCheckCount, + var servicesCount, servicesCheckedCount, servicesScheduledCount, servicesActiveCheckCount, servicesPassiveCheckCount, servicesOkCount, servicesWarnCount, servicesCriticalCount, servicesUnknownCount, servicesFlapCount, servicesDowntimeCount, servicesProblemsAcknowledgedCount int @@ -420,7 +420,7 @@ func (e *Exporter) QueryAPIsAndUpdateMetrics(ch chan<- prometheus.Metric, sslVer servicesCount++ if v.HasBeenChecked == 0 { - servicessCheckedCount++ + servicesCheckedCount++ } if v.ShouldBeScheduled == 0 {