mirror of
https://github.com/nshttpd/mikrotik-exporter.git
synced 2024-09-27 03:42:52 +02:00
parent
909b176ce4
commit
4264ed930f
3
main.go
3
main.go
@ -5,7 +5,6 @@ import (
|
||||
"flag"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"fmt"
|
||||
"net/http"
|
||||
@ -37,7 +36,7 @@ var (
|
||||
withOptics = flag.Bool("with-optics", false, "retrieves optical diagnostic metrics")
|
||||
withWlanSTA = flag.Bool("with-wlansta", false, "retrieves connected wlan station 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")
|
||||
insecure = flag.Bool("insecure", false, "skips verification of server certificate when using TLS (not recommended)")
|
||||
cfg *config.Config
|
||||
|
Loading…
Reference in New Issue
Block a user