Skip to content

Commit

Permalink
fix: variable name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wbollock committed Sep 25, 2022
1 parent f6e79e0 commit 78d04c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nagios_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -420,7 +420,7 @@ func (e *Exporter) QueryAPIsAndUpdateMetrics(ch chan<- prometheus.Metric, sslVer
servicesCount++

if v.HasBeenChecked == 0 {
servicessCheckedCount++
servicesCheckedCount++
}

if v.ShouldBeScheduled == 0 {
Expand Down

0 comments on commit 78d04c3

Please sign in to comment.