zabbix-docker-monitoring icon indicating copy to clipboard operation
zabbix-docker-monitoring copied to clipboard

wrong filename

Open charlieyu opened this issue 6 years ago • 3 comments

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?

charlieyu avatar Jan 09 '18 11:01 charlieyu

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

jangaraj avatar Jan 09 '18 12:01 jangaraj

 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

charlieyu avatar Jan 15 '18 11:01 charlieyu

 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

jangaraj avatar Jan 15 '18 12:01 jangaraj