Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save_rogue does not seem to work #405

Open
wintersim opened this issue Mar 25, 2022 · 3 comments
Open

save_rogue does not seem to work #405

wintersim opened this issue Mar 25, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@wintersim
Copy link

I'd like to import the neighboring/rogue access point data into grafana, so I set save_rogue = true in my unpoller config file.
During startup I can verify that it was enabled by checking the logs: up-poller | 2022/03/25 16:58:49 [INFO] => Save Rogue APs: true
Polling also completes successfully (although rogue APs are not mentioned):
up-poller | 2022/03/25 16:59:20 [INFO] UniFi Metrics Recorded. Site: 1, Client: 6, Gateways: 0, UAP: 3, USW: 0, IDS/Event/Alarm/Anomaly: 0/0/0/0, DPI Site/Client: 1/0, Point: 33, Fields: 1136, Err: 0, Dur: 9ms

However, I am unable to find any rogue AP related data in my InfluxDB instance. Did I miss anything?
If it matters: I installed with docker-compose.

More logs:
up-poller | 2022/03/25 16:58:49 [INFO] Loading Configuration File: /config/unifi-poller.conf
up-poller | 2022/03/25 16:58:49 [INFO] UniFi Poller v2.1.3 Starting Up! PID: 1
up-poller | 2022/03/25 16:58:49 [INFO] Found 1 site(s) on controller https://192.168.0.200:8443: default (Default)
up-poller | 2022/03/25 16:58:49 [INFO] Configured UniFi Controller 1 of 1:
up-poller | 2022/03/25 16:58:49 [INFO] => URL: https://192.168.0.200:8443 (verify SSL: false)
up-poller | 2022/03/25 16:58:49 [INFO] => Version: 7.0.23 (43c7da9e-9f56-4ab2-b2d7-7d379e9196d9)
up-poller | 2022/03/25 16:58:49 [INFO] => Username: unifipoller (has password: true)
up-poller | 2022/03/25 16:58:49 [INFO] => Hash PII / Poll Sites: false / all
up-poller | 2022/03/25 16:58:49 [INFO] => Save Sites / Save DPI: true / true (metrics)
up-poller | 2022/03/25 16:58:49 [INFO] => Save Events / Save IDS: true / true (logs)
up-poller | 2022/03/25 16:58:49 [INFO] => Save Alarms / Anomalies: true / true (logs)
up-poller | 2022/03/25 16:58:49 [INFO] => Save Rogue APs: true
up-poller | 2022/03/25 16:58:49 [INFO] Prometheus config missing (or disabled), Prometheus HTTP listener disabled!
up-poller | 2022/03/25 16:58:49 [INFO] Loki config missing (or disabled), Loki output disabled!
up-poller | 2022/03/25 16:58:49 [INFO] Internal web server disabled!
up-poller | 2022/03/25 16:58:49 [INFO] Poller->InfluxDB started, interval: 30s, dp: false, db: unifi, url: http://192.168.0.200:8086
up_influxdb | [httpd] 172.24.0.1 - unifipoller [25/Mar/2022:16:59:20 +0000] "POST /write?consistency=&db=unifi&precision=ns&rp= HTTP/1.1 " 204 0 "-" "InfluxDBClient" e9d37690-ac5c-11ec-8001-0242ac180002 6033
up-poller | 2022/03/25 16:59:20 [INFO] UniFi Metrics Recorded. Site: 1, Client: 6, Gateways: 0, UAP: 3, USW: 0, IDS/Event/Alarm/Anomaly: 0/0/0/0, DPI Site/Client: 1/0, Point: 33, Fields: 1136, Err: 0, Dur: 9ms

@platinummonkey platinummonkey added the bug Something isn't working label Dec 21, 2022
@platinummonkey
Copy link
Contributor

can you check again in the latest 2.4.6+ release? I see this code should be saving on the uap_rogue table for influx

@wintersim
Copy link
Author

I tested it again with version 2.4.6, 2.5.0 and 2.7.5 and there is still no uap_rogue table.

SHOW MEASUREMENTS in the Influx CLI shows the following

clients
subsystems
uap
uap_radios
uap_vaps
unifi_events

Some Logs:

2022/12/26 17:38:55 [INFO] Loading Configuration File: unifi-poller.conf
2022/12/26 17:38:55 [INFO] UniFi Poller v2.5.0 Starting Up! PID: 1348154
2022/12/26 17:38:55 [INFO] Found 1 site(s) on controller https://127.0.0.1:8443: default (Default)
2022/12/26 17:38:55 [INFO] Configured UniFi Controller 1 of 1:
2022/12/26 17:38:55 [INFO]    => URL: https://127.0.0.1:8443 (verify SSL: false)
2022/12/26 17:38:55 [INFO]    => Version: 7.2.95 (43c7da9e-9f56-4ab2-b2d7-7d379e9196d9)
2022/12/26 17:38:55 [INFO]    => Username: api (has password: true)
2022/12/26 17:38:55 [INFO]    => Hash PII false / Drop PII false / Poll Sites: all
2022/12/26 17:38:55 [INFO]    => Save Sites true / Save DPI true (metrics)
2022/12/26 17:38:55 [INFO]    => Save Events true / Save IDS true (logs)
2022/12/26 17:38:55 [INFO]    => Save Alarms true / Anomalies true (logs)
2022/12/26 17:38:55 [INFO]    => Save Rogue APs: true
2022/12/26 17:38:55 [INFO] InfluxDB enabled
2022/12/26 17:38:55 [INFO] Poller->InfluxDB started, version: 1, interval: 30s, dp: false, db: unifi, url: http://192.168.0.200:8087, bucket: , org:
2022/12/26 17:39:25 [INFO] UniFi Metrics Recorded. Site: 1, Client: 3, Gateways: 0, UAP: 3, USW: 0, IDS/Event/Alarm/Anomaly: 0/1/0/0, DPI Site/Client: 1/0, Point: 26, Fields: 792, Err: 0, Dur: 21ms

@martydingo
Copy link

martydingo commented Apr 16, 2024

I am still seeing this issue on v2.11.1

I can see the collection occuring

2024/04/16 13:40:43.757481 updateweb.go:222: [DEBUG] Polling Controller for RogueAPs, site REDACTED (default) (REDACTED)
2024/04/16 13:40:43.757569 updateweb.go:222: [DEBUG] Requesting https://REDACTED:8443/api/s/default/stat/rogueap, with params: false, cookies: 2
2024/04/16 13:40:43.761486 updateweb.go:222: [DEBUG] Requested https://REDACTED:8443/api/s/default/stat/rogueap: elapsed 4ms, returned 6102 bytes

But it doesn't appear to be sending nor is there any data in Loki or InfluxDB

I did spot this

2024/04/16 13:31:13.910627 logger.go:19: [INFO] UniFi Metrics Recorded. Site: 1, Client: 35, Gateways: 0, UAP: 2, USW: 2, IDS/Event/Alarm/Anomaly: 0/0/0/0, DPI Site/Client: 1/0, Point: 67, Fields: 2054, Err: 0, Dur: 40ms

Which contains no information about rogue APs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants