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

UniFi-Poller: UAP Insights - InfluxDB Guest Count displays 0 #17

Open
deanjarnold opened this issue Jan 31, 2022 · 3 comments
Open

UniFi-Poller: UAP Insights - InfluxDB Guest Count displays 0 #17

deanjarnold opened this issue Jan 31, 2022 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@deanjarnold
Copy link

The Guest count for the 'UAP Insights - InfluxDB' dashboard displays as 0/zero.

To fix change the query to is_guest evaluation to AND is_guest = 'true' note single quotes rather than double.

@davidnewhall
Copy link
Member

InfluxDB is returning different results based on the quote type?

@deanjarnold
Copy link
Author

Influx was not return any results when true was wrapped with double quotes vs single quotes.

This returned 0:
select count(distinct(hostname)) FROM "clients" WHERE ($timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /$Site$/ AND is_guest = "true")

This returns the actual guest count:
select count(distinct(hostname)) FROM "clients" WHERE ($timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /$Site$/ AND is_guest = 'true')

@platinummonkey platinummonkey added bug Something isn't working help wanted Extra attention is needed labels Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants