3
main.go
3
main.go
@@ -5,7 +5,6 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
|
||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -37,7 +36,7 @@ var (
|
|||||||
withOptics = flag.Bool("with-optics", false, "retrieves optical diagnostic metrics")
|
withOptics = flag.Bool("with-optics", false, "retrieves optical diagnostic metrics")
|
||||||
withWlanSTA = flag.Bool("with-wlansta", false, "retrieves connected wlan station metrics")
|
withWlanSTA = flag.Bool("with-wlansta", false, "retrieves connected wlan station metrics")
|
||||||
withWlanIF = flag.Bool("with-wlanif", false, "retrieves wlan interface metrics")
|
withWlanIF = flag.Bool("with-wlanif", false, "retrieves wlan interface metrics")
|
||||||
timeout = flag.Duration("timeout", collector.DefaultTimeout*time.Second, "timeout when connecting to routers")
|
timeout = flag.Duration("timeout", collector.DefaultTimeout, "timeout when connecting to routers")
|
||||||
tls = flag.Bool("tls", false, "use tls to connect to routers")
|
tls = flag.Bool("tls", false, "use tls to connect to routers")
|
||||||
insecure = flag.Bool("insecure", false, "skips verification of server certificate when using TLS (not recommended)")
|
insecure = flag.Bool("insecure", false, "skips verification of server certificate when using TLS (not recommended)")
|
||||||
cfg *config.Config
|
cfg *config.Config
|
||||||
|
|||||||
Reference in New Issue
Block a user