fixes
This commit is contained in:
parent
2b11aa0e08
commit
0f8a591bea
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:e52e3ff16e2e82410ca561073537e336b0aff9f3bded65ee856aec7ec47efbaf"
|
digest = "1:b766501db7f06de27d80503fc6e956a7ce216b32bc7d833a20186edc88d52394"
|
||||||
name = "github.com/golift/unifi"
|
name = "github.com/golift/unifi"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "3968f3384cbe437d991c27c4338e4c371897ac32"
|
revision = "9a7a31e810005b7cfd7337ec9fe45f19531c3953"
|
||||||
version = "v2.0.2"
|
version = "v2.0.3"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|
|
||||||
|
|
@ -96,12 +96,15 @@ func (c *Config) CheckSites(controller *unifi.Unifi) error {
|
||||||
for _, site := range sites {
|
for _, site := range sites {
|
||||||
msg = append(msg, site.Name+" ("+site.Desc+")")
|
msg = append(msg, site.Name+" ("+site.Desc+")")
|
||||||
}
|
}
|
||||||
log.Printf("Found %d site(s) on controller: %v", len(msg), strings.Join(msg, ","))
|
log.Printf("Found %d site(s) on controller: %v", len(msg), strings.Join(msg, ", "))
|
||||||
|
}
|
||||||
|
if StringInSlice("all", c.Sites) {
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
FIRST:
|
FIRST:
|
||||||
for _, s := range c.Sites {
|
for _, s := range c.Sites {
|
||||||
for _, site := range sites {
|
for _, site := range sites {
|
||||||
if s == site.Name || s == "all" {
|
if s == site.Name {
|
||||||
continue FIRST
|
continue FIRST
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Import these into Grafana to quickly visualize data from your devices.
|
||||||
Created with Grafana 6.2.
|
Created with Grafana 6.2.
|
||||||
|
|
||||||
These dashboards require a few plugins.
|
These dashboards require a few plugins.
|
||||||
See the [Wiki](https://github.com/davidnewhall/unifi-poller/wiki/Grafana) for more info.
|
See the [Grafana Wiki Article](https://github.com/davidnewhall/unifi-poller/wiki/Grafana) for more info.
|
||||||
|
|
||||||
Keep in mind these dashboards are just examples. You should make an Example folder
|
Keep in mind these dashboards are just examples. You should make an Example folder
|
||||||
in Grafana to keep them in, and copy them to new dashboards that you want to change.
|
in Grafana to keep them in, and copy them to new dashboards that you want to change.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue