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

wrong filename #86

Open
charlieyu opened this issue Jan 9, 2018 · 3 comments
Open

wrong filename #86

charlieyu opened this issue Jan 9, 2018 · 3 comments

Comments

@charlieyu
Copy link

I get an error
Cannot open metric file: '/sys/fs/cgroup/memory/docker//ae16195c4ad4/memory.stat'
I found this address is wrong, the current address is
/sys/fs/cgroup/memory/docker/ae16195c4ad41ff242f733703e052553e6492f7a38e137b4f4a3f2a1dac541fa/memory.stat
I had look up the source code, but have no idea how to fix it.
Can you fix the problem?

@jangaraj
Copy link
Member

jangaraj commented Jan 9, 2018

Please increaseDebugLevel=5 in the agent config and provide debug logs.

@charlieyu
Copy link
Author

charlieyu commented Jan 15, 2018

 17642:20180115:191119.360 In zbx_module_docker_inspect_exec()
 17640:20180115:191119.360 __zbx_zbx_setproctitle() title:'listener #1 [waiting for connection]'
 17642:20180115:191119.360 In zbx_docker_api_detect()
 17642:20180115:191119.360 In zbx_docker_perm()
 17642:20180115:191119.360 Additional permission of Zabbix Agent are not detected - only basic docker metrics are available
 17642:20180115:191119.360 Docker's socket API is not available
 17642:20180115:191119.360 Default fci will be used, because zbx_module_docker_inspect_exec FAIL: Docker's socket API is not available
 17642:20180115:191119.360 Metric source file: /sys/fs/cgroup/cpu,cpuacct/system.slice/docker-/8233c81f9193.scope/cpuacct.stat
 17642:20180115:191119.360 Cannot open metric file: '/sys/fs/cgroup/cpu,cpuacct/system.slice/docker-/8233c81f9193.scope/cpuacct.stat', container doesn't run
 17642:20180115:191119.360 Sending back [0]
 17642:20180115:191119.360 __zbx_zbx_setproctitle() title:'listener #3 [waiting for connection]'
 17642:20180115:191119.367 __zbx_zbx_setproctitle() title:'listener #3 [processing request]'
 17642:20180115:191119.367 Requested [net.if.in[docker0]]
 17642:20180115:191119.367 Sending back [0]
 17642:20180115:191119.368 __zbx_zbx_setproctitle() title:'listener #3 [waiting for connection]'
 17643:20180115:191120.050 In send_buffer() host:'192.168.1.235' port:10051 entries:0/100
 17643:20180115:191120.050 End of send_buffer():SUCCEED
 17643:20180115:191120.050 __zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
 17639:20180115:191120.067 __zbx_zbx_setproctitle() title:'collector [processing data]'
 17639:20180115:191120.068 In update_cpustats()
 17639:20180115:191120.068 End of update_cpustats()
 17639:20180115:191120.068 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
 17640:20180115:191120.382 __zbx_zbx_setproctitle() title:'listener #1 [processing request]'
 17640:20180115:191120.382 Requested [docker.up[/c211edf4b38a]]
 17640:20180115:191120.382 In zbx_module_docker_up()
 17640:20180115:191120.382 In zbx_module_docker_get_fci()
 17640:20180115:191120.382 Translating container name to fci by using docker.inspect
 17640:20180115:191120.382 In zbx_module_docker_inspect_exec()
 17640:20180115:191120.382 In zbx_docker_api_detect()
 17640:20180115:191120.382 In zbx_docker_perm()
 17640:20180115:191120.383 Additional permission of Zabbix Agent are not detected - only basic docker metrics are available
 17640:20180115:191120.383 Docker's socket API is not available
 17640:20180115:191120.383 Default fci will be used, because zbx_module_docker_inspect_exec FAIL: Docker's socket API is not available
 17640:20180115:191120.383 Metric source file: /sys/fs/cgroup/cpu,cpuacct/system.slice/docker-/c211edf4b38a.scope/cpuacct.stat
 17640:20180115:191120.383 Cannot open metric file: '/sys/fs/cgroup/cpu,cpuacct/system.slice/docker-/c211edf4b38a.scope/cpuacct.stat', container doesn't run

@jangaraj
Copy link
Member

 17642:20180115:191119.360 Additional permission of Zabbix Agent are not detected - only basic docker metrics are available
 17642:20180115:191119.360 Docker's socket API is not available

At least you have a problem with permissions. Please read README - https://github.com/monitoringartist/zabbix-docker-monitoring#additional-docker-permissions

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

2 participants