Application: Collect ALL UniFi Controller, Site, Device & Client Data - Export to InfluxDB or Prometheus
Go to file
Martin Buchleitner 83f84922a0 adding docker image build
Signed-off-by: Martin Buchleitner <mbuchleitner@infralovers.com>
2019-06-13 14:33:57 +02:00
.travis Add new deploy setup. 2019-06-12 19:11:10 -07:00
cmd/unifi-poller Update SYNOPSIS 2019-06-13 01:15:47 -07:00
examples Deprecate make install 2019-06-07 15:40:05 -07:00
init Run as nobody on macos. 2019-06-08 03:22:10 -07:00
pkg/unifi-poller Migrate main to pkg. 2019-06-13 01:00:20 -07:00
scripts Fix homebrew build. 2019-06-13 01:46:42 -07:00
templates add comments 2019-06-13 02:40:56 -07:00
.dockerignore adding docker image build 2019-06-13 14:33:57 +02:00
.gitignore Fix homebrew build. 2019-06-13 01:46:42 -07:00
.travis.yml Fix homebrew build. 2019-06-13 01:46:42 -07:00
Dockerfile adding docker image build 2019-06-13 14:33:57 +02:00
Gopkg.lock Update vendors 2019-06-06 18:15:21 -07:00
Gopkg.toml Use spf13 pflag. 2019-05-30 02:17:13 -07:00
LICENSE Rename license and include it in packages. 2019-06-13 02:29:02 -07:00
Makefile adding docker image build 2019-06-13 14:33:57 +02:00
README.md Update README.md 2019-06-11 02:48:26 -07:00

README.md

Unifi Poller

Collect your Unifi Controller Data and send it to an InfluxDB instance. Grafana dashboards included. Updated 2019.

Installation

See the Wiki!

Backstory

Okay, so here's the deal. I found a simple piece of code on github that sorta did what I needed; we all know that story. I wanted more data, so I added more data collection. I believe I've completely rewritten every piece of original code, except the copyright/license file and that's fine by me. I probably wouldn't have made it this far if Garrett hadn't written the original code I started with. Many props my man.

The original code pulled only the client data. This app now pulls data for clients, access points, security gateways and switches. I currently own two UAP-AC-PROs, one USG-3 and one US-24-250W. If your devices differ this app may miss some data. I'm willing to help and make it better. Open an Issue and we'll figure out how to get things working for you.

What's this data good for?

I've been trying to get my UAP data into Grafana. Sure, google search that. You'll find this. And that's all you'll find. What if you don't want to deal with SNMP? Well, here you go. I've replicated 90% of what you see on those SNMP-powered dashboards with this Go app running on the same mac as my Unifi controller. All without enabling SNMP nor trying to understand those OIDs. Mad props to waterside for making this dashboard; it gave me a fantastic start to making my own.

I've also created another forum post you may use to get additional help.

What now...

  • Are there other devices that need to be included?

I have: switch, router, access point. Three total, and the type structs are likely missing data for variants of these devices. e.g. Some UAPs have more radios, I probably didn't properly account for that. Some gateways have more ports, some switches have 10Gb, etc. These are things I do not have data on to write code for. If you have these devices, and want them graphed, open an Issue and lets discuss.

  • Better Installation instructions.

If you're a nerd you can probably figure it out. I'd still like some pretty pictures and maybe even a Twitch VOD. Update: The installation has been simplified tremendously with the creation of binary packages. More to come!

  • Radios, Frequencies, Interfaces, vAPs

My access points only seem to have two radios, one interface and vAP per radio. I'm not sure if the graphs, as-is, provide enough insight into APs with other configurations. Help me figure that out?

What's it look like?

Here's a picture of the Client dashboard.

image

Here's a picture of the USG dashboard.

image

Here's a picture of the UAP dashboard. This only shows one device, but you can select multiple to put specific stats side-by-side.

image

The USW / Switch Dashboard is pretty big with one data-filled section per selected port. You can drill down into specific sites, switches, and ports. Compare ports in different sites side-by-side. So easy! This screenshot barely does it justice.

image

  • Copyright © 2016 Garrett Bjerkhoel.
  • Copyright © 2018 David Newhall II.
  • See MIT-LICENSE for license information.