add mroe fields to rogue ap

This commit is contained in:
David Newhall II
2021-03-21 22:06:09 -07:00
parent ec36ef6c78
commit ff5b52e142
+10 -8
View File
@@ -16,14 +16,16 @@ func (u *InfluxUnifi) batchRogueAP(r report, s *unifi.RogueAP) {
r.send(&metric{
Table: "uap_rogue",
Tags: map[string]string{
"ap_mac": s.ApMac,
"site_name": s.SiteName,
"source": s.SourceName,
"name": s.Essid,
"mac": s.Bssid,
"security": s.Security,
"oui": s.Oui,
"band": s.Band,
"ap_mac": s.ApMac,
"site_name": s.SiteName,
"source": s.SourceName,
"name": s.Essid,
"mac": s.Bssid,
"security": s.Security,
"radio": s.Radio,
"radio_name": s.RadioName,
"oui": s.Oui,
"band": s.Band,
},
Fields: map[string]interface{}{
"age": s.Age.Val,