This commit is contained in:
2023-08-15 23:00:40 +08:00
12 changed files with 514 additions and 66 deletions

View File

@@ -14,6 +14,7 @@ import (
"ems.agt/features/dbrest"
"ems.agt/features/fm"
"ems.agt/features/monitor/monitor"
"ems.agt/features/pm"
"ems.agt/restagent/config"
)
@@ -102,6 +103,9 @@ func main() {
router := routes.NewRouter()
// 开启监控采集
monitor.StartMonitor(false, "")
for _, rest := range conf.Rest {
// ipv4 goroutines
if rest.IPv4 != "" {