This commit is contained in:
davidnewhall2
2020-06-15 06:05:37 -07:00
parent 8057ef296e
commit b32a9edebf
6 changed files with 8 additions and 18 deletions

View File

@@ -54,10 +54,8 @@
# dynamic controller (see above section), or the primary controller if you do not
# provide one and dynamic is disabled. In other words, you can just add your
# controller here and delete the following section. The internal defaults are
# shown below. Any missing values will assume these displayed defaults, except
# the role; if omitted the role is set to the url. See comments below for details.
# shown below. Any missing values will assume these displayed defaults.
[unifi.defaults]
#role = "main controller"
url = "https://127.0.0.1:8443"
user = "unifipoller"
pass = "unifipoller"
@@ -73,12 +71,6 @@
# You may repeat the following section to poll multiple controllers.
# Any ommitted variables will have their values taken from the defaults, above.
#[[unifi.controller]]
# Role is a friendly name used in dashboards. Uses URL if left empty; which is fine.
# Avoid changing this later because it will live forever in your database.
# Multiple controllers may share a role. This allows grouping during scrapes.
# --- This will be deprecated in a future version of UniFi Poller. ---
#role = "https://127.0.0.1:8443"
# URL for the UniFi Controller. Do not add any paths after the host:port.
# Do not use port 8443 if you have a UDM.
#url = "https://127.0.0.1:8443"

View File

@@ -24,7 +24,6 @@
"unifi": {
"dynamic": false,
"defaults": {
"role": "main controller",
"user": "unifipoller",
"pass": "unifipoller",
"url": "https://127.0.0.1:8443",
@@ -37,7 +36,6 @@
},
"controllers": [
{
"role": "",
"user": "unifipoller",
"pass": "unifipoller",
"url": "https://127.0.0.1:8443",

View File

@@ -26,7 +26,7 @@ NOTE: <plugin> and <site> are lists of strings and may be repeated.
</influxdb>
<unifi dynamic="false">
<default role="main controller">
<default>
<site>all</site>
<user>unifipoller</user>
<pass>unifipoller</pass>
@@ -39,7 +39,7 @@ NOTE: <plugin> and <site> are lists of strings and may be repeated.
</default>
<!-- Repeat this stanza to poll additional controllers. -->
<controller role="">
<controller>
<site>all</site>
<user>unifipoller</user>
<pass>unifipoller</pass>

View File

@@ -27,10 +27,9 @@ influxdb:
unifi:
dynamic: false
defaults:
role: "main controller"
url: "https://127.0.0.1:8443"
user: "unifipoller"
pass: "unifipoller"
url: "https://127.0.0.1:8443"
sites:
- all
save_ids: false
@@ -42,10 +41,9 @@ unifi:
controllers:
# Repeat the following stanza to poll multiple controllers.
- role: ""
- url: "https://127.0.0.1:8443"
user: "unifipoller"
pass: "unifipoller"
url: "https://127.0.0.1:8443"
sites:
- all
save_ids: false