diff --git a/nagios_exporter.go b/nagios_exporter.go index f82b3e5..d0f6255 100644 --- a/nagios_exporter.go +++ b/nagios_exporter.go @@ -472,10 +472,10 @@ func (e *Exporter) QueryAPIsAndUpdateMetrics(ch chan<- prometheus.Metric, sslVer updateAvailable, prometheus.GaugeValue, updateMetric, // updateMetric 0 = no update, updateMetric 1 = update available ) + } else { + log.Warn("Nagios version wasn't found, not updating `nagios_update_available_info` metric") } - log.Warn("Nagios version wasn't found, not updating `nagios_update_available_info` metric") - } else { // user did not want to compare nagios versions externally so just say there aren't any updates (0) ch <- prometheus.MustNewConstMetric( updateAvailable, prometheus.GaugeValue, 0,