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:
parent
61d97f2983
commit
6ddb2055d0
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue