连接arm机器 点状态信息会报错
wuruiwm opened this issue · 1 comments
错误日志
{
"level": "error",
"ts": "2023-05-09 10:25:26.479",
"caller": "log/logger.go:137",
"msg": "api error",
"err": "Process exited with status 1",
"stacktrace": "next-terminal/server/log.Error\n\t/app/server/log/logger.go:137\nnext-terminal/server/app/middleware.ErrorHandler.func1\n\t/app/server/app/middleware/error_handler.go:18\ngithub.com/labstack/echo/v4/middleware.CORSWithConfig.func1.1\n\t/go/pkg/mod/github.com/labstack/echo/v4@v4.10.2/middleware/cors.go:199\ngithub.com/labstack/echo/v4/middleware.RecoverWithConfig.func1.1\n\t/go/pkg/mod/github.com/labstack/echo/v4@v4.10.2/middleware/recover.go:119\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP\n\t/go/pkg/mod/github.com/labstack/echo/v4@v4.10.2/echo.go:662\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2936\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1995"
}
【状态信息】实际上是执行了一些命令来获取服务器状态,应该是你的这台机器没有这些命令。请确认这些命令可以正确执行,不然抓不到监控数据。
/bin/cat /proc/stat
/bin/cat /proc/net/dev
/bin/ip -o addr
/sbin/ip -o addr
/bin/df -B1
/bin/cat /proc/meminfo
/bin/cat /proc/loadavg
/bin/cat /proc/uptime
/bin/hostname -f