[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法监测docker容器 #74

Open
vanchain opened this issue Feb 3, 2023 · 4 comments
Open

无法监测docker容器 #74

vanchain opened this issue Feb 3, 2023 · 4 comments

Comments

@vanchain
Copy link
vanchain commented Feb 3, 2023

docker name/id 都试过,均无法正常监测

查看agent日志,并没有报 [GetDockerApiContainerList err: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40] 相关错误

也根据上述描述,在 /etc/profile 文件加入 export DOCKER_API_VERSION=1.40 ,刷新之后依旧不起作用(agent也已重启)

wgcloud server端 docker列表处,所有容器内存使用显示-1M

agent日志:
[wgcloud-agent]2023/02/03 10:13:00 WgcloudAgent.go:313: 请求server监控端口返回结果:{"msg":"","code":"0","data":[]}
[wgcloud-agent]2023/02/03 10:13:00 WgcloudAgent.go:315: 请求server监控日志返回结果:{"msg":"","code":"0","data":[]}
[wgcloud-agent]2023/02/03 10:13:00 WgcloudAgent.go:317: 请求server文件防篡改监测信息返回结果:{"msg":"","code":"0","data":[]}
[wgcloud-agent]2023/02/03 10:13:00 shellInfo.go:64: 请求server下发指令返回结果:{"msg":"","code":"0","data":[]}
[wgcloud-agent]2023/02/03 10:13:00 WgcloudAgent.go:320: 请求server自定义监控项信息返回结果:{"msg":"","code":"0","data":[]}
[wgcloud-agent]2023/02/03 10:13:00 hostUtil.go:211: 获取docker mem信息错误: open /sys/fs/cgroup/memory/system.slice/docker-49bd462cedd7a2e7a09ce21691b4b8a7de49860ed2f549bdd31655ea8d7938f8.scope/memory.stat: no such file or directory
[wgcloud-agent]2023/02/03 10:13:00 dockerUtil.go:130: containerId:49bd462cedd7a2e7a09ce21691b4b8a7de49860ed2f549bdd31655ea8d7938f8,dockerState:{"portStr":"","image":"","command":"","created":"","sizeRootFs":0,"memToM":-1,"status":"","appType":"1","names":"","containerState":"Exited"}
[wgcloud-agent]2023/02/03 10:13:00 hostUtil.go:211: 获取docker mem信息错误: open /sys/fs/cgroup/memory/system.slice/docker-002b64faadcb805f78396d0cfd125375b326d1b2fa20e2af946eb70bc4fe9c77.scope/memory.stat: no such file or directory
[wgcloud-agent]2023/02/03 10:13:00 dockerUtil.go:130: containerId:002b64faadcb805f78396d0cfd125375b326d1b2fa20e2af946eb70bc4fe9c77,dockerState:{"portStr":"","image":"","command":"","created":"","sizeRootFs":0,"memToM":-1,"status":"","appType":"1","names":"","containerState":"Exited"}
[wgcloud-agent]2023/02/03 10:13:00 hostUtil.go:211: 获取docker mem信息错误: open /sys/fs/cgroup/memory/system.slice/docker-2d5dab765fffb3e1327ca08d69f4cfc1559f7295f389119bf932381c4aaab4f8.scope/memory.stat: no such file or directory
[wgcloud-agent]2023/02/03 10:13:00 dockerUtil.go:130: containerId:2d5dab765fffb3e1327ca08d69f4cfc1559f7295f389119bf932381c4aaab4f8,dockerState:{"portStr":"","image":"","command":"","created":"","sizeRootFs":0,"memToM":-1,"status":"","appType":"1","names":"","containerState":"Exited"}
[wgcloud-agent]2023/02/03 10:13:00 hostUtil.go:211: 获取docker mem信息错误: open /sys/fs/cgroup/memory/system.slice/docker-1a2dc1a3221f45ce9a4691d983f9499dd783c2fcfbb094e936807f6e5cfae02f.scope/memory.stat: no such file or directory
[wgcloud-agent]2023/02/03 10:13:00 dockerUtil.go:130: containerId:1a2dc1a3221f45ce9a4691d983f9499dd783c2fcfbb094e936807f6e5cfae02f,dockerState:{"portStr":"","image":"","command":"","created":"","sizeRootFs":0,"memToM":-1,"status":"","appType":"1","names":"","containerState":"Exited"}

@vanchain
Copy link
Author
vanchain commented Feb 3, 2023

server端是在windows下运行,agent是在linux下运行
版本一致
v3.4.4

@tianshiyeben
Copy link
Owner
tianshiyeben commented Feb 3, 2023 via email

@vanchain
Copy link
Author
vanchain commented Feb 3, 2023

你好:     @.***     1.先在被控主机执行这个指令:docker ps --no-trunc      截图发到邮箱,我看一看      2.再把添加docker页面截图,我看看输入的信息 Good Luck WGCLOUD  

------------------ 原始邮件 ------------------ 发件人: "tianshiyeben/wgcloud" @.>; 发送时间: 2023年2月3日(星期五) 上午10:22 @.>; @.>; 主题: [tianshiyeben/wgcloud] 无法监测docker容器 (Issue #74) docker name/id 都试过,均无法正常监测 查看agent日志,并没有报 [GetDockerApiContainerList err: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40] 相关错误 也根据上述描述,在 /etc/profile 文件加入 export DOCKER_API_VERSION=1.40 ,刷新之后依旧不起作用(agent也已重启) wgcloud server端 docker列表处,所有容器内存使用显示-1M agent日志: [wgcloud-agent]2023/02/03 10:13:00 WgcloudAgent.go:313: 请求server监控端口返回结果:{"msg":"","code":"0","data":[]} [wgcloud-agent]2023/02/03 10:13:00 WgcloudAgent.go:315: 请求server监控日志返回结果:{"msg":"","code":"0","data":[]} [wgcloud-agent]2023/02/03 10:13:00 WgcloudAgent.go:317: 请求server文件防篡改监测信息返回结果:{"msg":"","code":"0","data":[]} [wgcloud-agent]2023/02/03 10:13:00 shellInfo.go:64: 请求server下发指令返回结果:{"msg":"","code":"0","data":[]} [wgcloud-agent]2023/02/03 10:13:00 WgcloudAgent.go:320: 请求server自定义监控项信息返回结果:{"msg":"","code":"0","data":[]} [wgcloud-agent]2023/02/03 10:13:00 hostUtil.go:211: 获取docker mem信息错误: open /sys/fs/cgroup/memory/system.slice/docker-49bd462cedd7a2e7a09ce21691b4b8a7de49860ed2f549bdd31655ea8d7938f8.scope/memory.stat: no such file or directory [wgcloud-agent]2023/02/03 10:13:00 dockerUtil.go:130: containerId:49bd462cedd7a2e7a09ce21691b4b8a7de49860ed2f549bdd31655ea8d7938f8,dockerState:{"portStr":"","image":"","command":"","created":"","sizeRootFs":0,"memToM":-1,"status":"","appType":"1","names":"","containerState":"Exited"} [wgcloud-agent]2023/02/03 10:13:00 hostUtil.go:211: 获取docker mem信息错误: open /sys/fs/cgroup/memory/system.slice/docker-002b64faadcb805f78396d0cfd125375b326d1b2fa20e2af946eb70bc4fe9c77.scope/memory.stat: no such file or directory [wgcloud-agent]2023/02/03 10:13:00 dockerUtil.go:130: containerId:002b64faadcb805f78396d0cfd125375b326d1b2fa20e2af946eb70bc4fe9c77,dockerState:{"portStr":"","image":"","command":"","created":"","sizeRootFs":0,"memToM":-1,"status":"","appType":"1","names":"","containerState":"Exited"} [wgcloud-agent]2023/02/03 10:13:00 hostUtil.go:211: 获取docker mem信息错误: open /sys/fs/cgroup/memory/system.slice/docker-2d5dab765fffb3e1327ca08d69f4cfc1559f7295f389119bf932381c4aaab4f8.scope/memory.stat: no such file or directory [wgcloud-agent]2023/02/03 10:13:00 dockerUtil.go:130: containerId:2d5dab765fffb3e1327ca08d69f4cfc1559f7295f389119bf932381c4aaab4f8,dockerState:{"portStr":"","image":"","command":"","created":"","sizeRootFs":0,"memToM":-1,"status":"","appType":"1","names":"","containerState":"Exited"} [wgcloud-agent]2023/02/03 10:13:00 hostUtil.go:211: 获取docker mem信息错误: open /sys/fs/cgroup/memory/system.slice/docker-1a2dc1a3221f45ce9a4691d983f9499dd783c2fcfbb094e936807f6e5cfae02f.scope/memory.stat: no such file or directory [wgcloud-agent]2023/02/03 10:13:00 dockerUtil.go:130: containerId:1a2dc1a3221f45ce9a4691d983f9499dd783c2fcfbb094e936807f6e5cfae02f,dockerState:{"portStr":"","image":"","command":"","created":"","sizeRootFs":0,"memToM":-1,"status":"","appType":"1","names":"","containerState":"Exited"} — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

回复的邮件好像被屏蔽了,我发送了你个人主页的邮箱

@H-TWINKLE
Copy link

遇到同样问题,加入profiles后刷新后,重启也不生效,应该怎么解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants