fix connect to dev dashboard
This commit is contained in:
+3
-1
@@ -12,7 +12,9 @@ import (
|
||||
)
|
||||
|
||||
// 修改Agent要监控的网卡与硬盘分区
|
||||
func editAgentConfig() {
|
||||
func editAgentConfig(configPath string) {
|
||||
agentConfig.Read(configPath)
|
||||
|
||||
nc, err := psnet.IOCounters(true)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@ func main() {
|
||||
}
|
||||
|
||||
if isEditConfig {
|
||||
editAgentConfig()
|
||||
editAgentConfig(configPath)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user