这个问题,如果确定端口是能够telnet通的话,可能是主机名的起因导致的监测失败

wgcloud的agent监测端口机制,默认应用的是:

telnet localhost 3306

3306是轻易写的端口号,如果不通,那么可能是localhost无奈应用

咱们在agent配置文件agent/config/application.properties中批改下配置项,如下,把默认的localhost改成agent主机的IP:

#端口检测规定,telnet localhost或ip 端口号telnetIp=localhost

改好后,重启下agent,察看5分钟,看是否无效