From 93f3886cd81d24686e19a2fcbee03c23e5cd26ee Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Fri, 7 Jun 2019 14:24:20 -0700 Subject: [PATCH] doc and path updates. --- README.md | 16 ++++------------ cmd/unifi-poller/README.md | 10 +++++----- cmd/unifi-poller/config.go | 2 +- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index df5a2333..cc89530e 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,6 @@ for making this dashboard; it gave me a fantastic start to making my own. # What now... -- Better Linux support and testing - -I only, personally, run this on a Mac 10.13.something. I know others are using -Linux and it's working, but I need more feedback. Does the unit file work? Are -you able to stop and start the service? Does the Makefile do the right things? - - Are there other devices that need to be included? I have: switch, router, access point. Three total, and the type structs are @@ -55,7 +49,10 @@ 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. +pictures and maybe even a Twitch VOD. Update: The installation has been +simplified tremendously with the +[creation of binary packages](https://github.com/davidnewhall/unifi-poller/wiki/Package-Install). +More to come! - Radios, Frequencies, Interfaces, vAPs @@ -63,11 +60,6 @@ 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? -- It possibly loses access to the controller at some point. - -I noticed metrics stop updating after a while. I think the new code will help -isolate why this happens. We may need to issue a reconnect and get a new cookie. - # What's it look like? Here's a picture of the Client dashboard. diff --git a/cmd/unifi-poller/README.md b/cmd/unifi-poller/README.md index 691b7de3..df977efb 100644 --- a/cmd/unifi-poller/README.md +++ b/cmd/unifi-poller/README.md @@ -1,9 +1,9 @@ -unifi-poller(1) -- Utility to poll Unifi Metrics and drop them into InfluxDB +unifi-poller(1) -- Utility to poll UniFi Controller Metrics and store them in InfluxDB === ## SYNOPSIS -`unifi-poller -c /usr/local/etc/unifi-poller.conf` +`unifi-poller -c /etc/unifi-poller.conf` ## DESCRIPTION @@ -26,7 +26,7 @@ unifi-poller(1) -- Utility to poll Unifi Metrics and drop them into InfluxDB ## CONFIGURATION -* Config File Default Location: /usr/local/etc/unifi-poller/up.conf +* Config File Default Location: /etc/unifi-poller/up.conf `Config File Parameters` @@ -94,10 +94,10 @@ Example Use: `1m`, `5h`, `100ms`, `17s`, `1s45ms`, `1m3s` * Garrett Bjerkhoel (original code) ~ 2016 * David Newhall II (rewritten) ~ 4/20/2018 +* David Newhall II (still going) ~ 6/7/2019 ## LOCATION * https://github.com/davidnewhall/unifi-poller -* /usr/local/bin/unifi-poller -* config-file: /usr/local/etc/unifi-poller/up.conf +* UniFi Library: https://github.com/golift/unifi * previously: https://github.com/dewski/unifi diff --git a/cmd/unifi-poller/config.go b/cmd/unifi-poller/config.go index 44b84be1..1b75860a 100644 --- a/cmd/unifi-poller/config.go +++ b/cmd/unifi-poller/config.go @@ -7,7 +7,7 @@ var Version = "development" const ( // App defaults in case they're missing from the config. - defaultConfFile = "/usr/local/etc/unifi-poller/up.conf" + defaultConfFile = "/etc/unifi-poller/up.conf" defaultInterval = 30 * time.Second defaultInfxDb = "unifi" defaultInfxUser = "unifi"