Tested and working.
This commit is contained in:
parent
83c5a862b9
commit
06b36bf7d7
|
|
@ -14,4 +14,6 @@ new benefits to the existing dashboards. When that happens I update them.
|
|||
Keeping an Example set allows you to update too, inspect the changes, and apply them
|
||||
to your own custom dashboards.
|
||||
|
||||
This folder also contains an example configuration file and some dashboard screenshots.
|
||||
This folder also contains dashboard screenshots and example configuration files in four supported formats.
|
||||
You can use any format you want for the config file, just give it the appropriate prefix for the format.
|
||||
ie. an xml file should end with `.xml`.
|
||||
|
|
|
|||
|
|
@ -7,9 +7,8 @@
|
|||
<interval>30s</interval>
|
||||
<max_errors>0</max_errors>
|
||||
<quiet>false</quiet>
|
||||
<sites>
|
||||
<element>default</element>
|
||||
</sites>
|
||||
<sites>default</sites>
|
||||
<sites>site2</sites>
|
||||
<unifi_pass>4BB9345C-2341-48D7-99F5-E01B583FF77F</unifi_pass>
|
||||
<unifi_url>https://127.0.0.1:8443</unifi_url>
|
||||
<unifi_user>influxdb</unifi_user>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ func (u *UnifiPoller) CheckSites() error {
|
|||
}
|
||||
u.Logf("Found %d site(s) on controller: %v", len(msg), strings.Join(msg, ", "))
|
||||
if StringInSlice("all", u.Sites) {
|
||||
u.Sites = []string{"all"}
|
||||
return nil
|
||||
}
|
||||
FIRST:
|
||||
|
|
|
|||
Loading…
Reference in New Issue