mirror of
https://github.com/unpoller/unpoller.git
synced 2026-04-05 08:54:09 -04:00
Fix a bug where the PDU metrics captured by the unifi collector wouldn’t be included in the device output.
This commit is contained in:
@@ -218,6 +218,11 @@ func extractDevices(metrics *Metrics) (*poller.Metrics, map[string]string, map[s
|
||||
m.Devices = append(m.Devices, r)
|
||||
}
|
||||
|
||||
for _, r := range metrics.Devices.PDUs {
|
||||
devices[r.Mac] = r.Name
|
||||
m.Devices = append(m.Devices, r)
|
||||
}
|
||||
|
||||
return m, devices, bssdIDs
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user