Compare commits
2 Commits
2348f11d02
...
ff9558c3ee
Author | SHA1 | Date | |
---|---|---|---|
|
ff9558c3ee | ||
|
a67089dcd5 |
3
main.go
3
main.go
@ -245,16 +245,19 @@ func processAPIs() {
|
|||||||
var links []link
|
var links []link
|
||||||
|
|
||||||
if conf.Unms.Enabled == true {
|
if conf.Unms.Enabled == true {
|
||||||
|
fmt.Println("Processing UNMS")
|
||||||
unmsNodes, unmsLinks := processUNMSAPI()
|
unmsNodes, unmsLinks := processUNMSAPI()
|
||||||
nodes = append(nodes, unmsNodes...)
|
nodes = append(nodes, unmsNodes...)
|
||||||
links = append(links, unmsLinks...)
|
links = append(links, unmsLinks...)
|
||||||
}
|
}
|
||||||
if conf.Unifi.Enabled == true {
|
if conf.Unifi.Enabled == true {
|
||||||
|
fmt.Println("Processing Unifi")
|
||||||
ucNodes, ucLinks := processUcAPIs()
|
ucNodes, ucLinks := processUcAPIs()
|
||||||
nodes = append(nodes, ucNodes...)
|
nodes = append(nodes, ucNodes...)
|
||||||
links = append(links, ucLinks...)
|
links = append(links, ucLinks...)
|
||||||
}
|
}
|
||||||
if conf.Meshviewer.Enabled == true {
|
if conf.Meshviewer.Enabled == true {
|
||||||
|
fmt.Println("Processing Meshviewer")
|
||||||
mvNodes, mvLinks := getMeshviewer()
|
mvNodes, mvLinks := getMeshviewer()
|
||||||
nodes = append(nodes, mvNodes...)
|
nodes = append(nodes, mvNodes...)
|
||||||
links = append(links, mvLinks...)
|
links = append(links, mvLinks...)
|
||||||
|
4
types.go
4
types.go
@ -107,8 +107,8 @@ type node struct {
|
|||||||
ClientsWifi5 int `json:"clients_wifi5"`
|
ClientsWifi5 int `json:"clients_wifi5"`
|
||||||
ClientsOther int `json:"clients_other"`
|
ClientsOther int `json:"clients_other"`
|
||||||
RootFSUsage int `json:"rootfs_usage,omitempty"`
|
RootFSUsage int `json:"rootfs_usage,omitempty"`
|
||||||
LoadAVG float64 `json:"loadavg,omitempty"`
|
LoadAVG float64 `json:"loadavg"`
|
||||||
MemoryUsage float64 `json:"memory_usage,omitempty"`
|
MemoryUsage float64 `json:"memory_usage"`
|
||||||
Uptime string `json:"uptime"`
|
Uptime string `json:"uptime"`
|
||||||
GatewayNexthop string `json:"gateway_nexthop"`
|
GatewayNexthop string `json:"gateway_nexthop"`
|
||||||
Gateway string `json:"gateway"`
|
Gateway string `json:"gateway"`
|
||||||
|
Loading…
Reference in New Issue
Block a user