Closed oooh-name closed 8 years ago
Could you list all available cgroups in your Ubuntu 16 please?
It looks OK. Please start agent with env variable ZA_DebugLevel=4 and provide logs with your start command. Thx.
Yes,here was the log:
Zocker XXL v0.9.4b public limited version Copyright (C) 2014-2016 Jan Garaj - www.monitoringartist.com Freeware licence - Usage of this binary is restricted to official monitoringartist Docker images only. Starting Zabbix Agent [36a8d6a8205c]. Zabbix 3.0.3 XXL (2016-06-26) (revision {ZABBIX_REVISION}). Press Ctrl+C to exit.
7:20160823:114432.674 Starting Zabbix Agent [36a8d6a8205c]. Zabbix 3.0.3 XXL (2016-06-26) (revision {ZABBIX_REVISION}).
7:20160823:114432.675 **** Enabled features ****
7:20160823:114432.675 IPv6 support: YES
7:20160823:114432.675 TLS support: YES
7:20160823:114432.675 **************************
7:20160823:114432.675 using configuration file: /etc/zabbix/zabbix_agentd.conf
7:20160823:114432.675 In load_modules()
7:20160823:114432.675 loading module "/usr/local/lib/zabbix/zabbix_module_docker.so"
7:20160823:114432.675 In zbx_module_api_version()
7:20160823:114432.676 In zbx_module_init()
7:20160823:114432.676 zabbix_module_docker v0.6.3, compilation time: Jun 26 2016 20:30:00
7:20160823:114432.676 In zbx_docker_dir_detect()
7:20160823:114432.676 Cannot detect used docker driver
7:20160823:114432.676 In zbx_docker_api_detect()
7:20160823:114432.676 In zbx_module_docker_socket_query()
7:20160823:114432.676 Docker's socket query: GET /_ping HTTP/1.0
7:20160823:114432.676 Docker's socket response: OK
7:20160823:114432.676 Docker's socket works - extended docker metrics are available
7:20160823:114432.676 In zbx_module_item_timeout()
7:20160823:114432.676 In register_module()
7:20160823:114432.676 End of register_module():SUCCEED
7:20160823:114432.676 In zbx_module_item_list()
7:20160823:114432.677 loading module "/usr/local/lib/zabbix/zabbix_module_stress.so"
7:20160823:114432.677 In register_module()
7:20160823:114432.677 End of register_module():SUCCEED
7:20160823:114432.677 loaded modules: zabbix_module_docker.so, zabbix_module_stress.so
7:20160823:114432.677 End of load_modules():SUCCEED
7:20160823:114432.677 In init_collector_data()
7:20160823:114432.678 In zbx_dshm_create() proj_id:112 size:0
7:20160823:114432.678 End of zbx_dshm_create():SUCCEED shmid:-1
7:20160823:114432.678 End of init_collector_data()
7:20160823:114432.678 agent #0 started [main process]
12:20160823:114432.678 agent #4 started [listener #3]
12:20160823:114432.678 In zbx_tls_init_child()
11:20160823:114432.679 agent #3 started [listener #2]
11:20160823:114432.679 In zbx_tls_init_child()
12:20160823:114432.681 OpenSSL library (version OpenSSL 1.0.1t 3 May 2016) initialized
12:20160823:114432.681 End of zbx_tls_init_child()
12:20160823:114432.681 __zbx_zbx_setproctitle() title:'listener #3 [waiting for connection]'
10:20160823:114432.681 agent #2 started [listener #1]
10:20160823:114432.681 In zbx_tls_init_child()
11:20160823:114432.682 OpenSSL library (version OpenSSL 1.0.1t 3 May 2016) initialized
11:20160823:114432.682 End of zbx_tls_init_child()
11:20160823:114432.682 __zbx_zbx_setproctitle() title:'listener #2 [waiting for connection]'
9:20160823:114432.683 agent #1 started [collector]
9:20160823:114432.683 In init_cpu_collector()
9:20160823:114432.684 End of init_cpu_collector():SUCCEED
9:20160823:114432.684 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114432.684 In update_cpustats()
9:20160823:114432.684 End of update_cpustats()
9:20160823:114432.684 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
10:20160823:114432.684 OpenSSL library (version OpenSSL 1.0.1t 3 May 2016) initialized
10:20160823:114432.685 End of zbx_tls_init_child()
10:20160823:114432.685 __zbx_zbx_setproctitle() title:'listener #1 [waiting for connection]'
9:20160823:114433.684 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114433.685 In update_cpustats()
9:20160823:114433.686 End of update_cpustats()
9:20160823:114433.686 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114434.687 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114434.687 In update_cpustats()
9:20160823:114434.687 End of update_cpustats()
9:20160823:114434.687 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114435.687 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114435.688 In update_cpustats()
9:20160823:114435.689 End of update_cpustats()
9:20160823:114435.689 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114436.690 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114436.690 In update_cpustats()
9:20160823:114436.690 End of update_cpustats()
9:20160823:114436.690 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114437.690 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114437.690 In update_cpustats()
9:20160823:114437.690 End of update_cpustats()
9:20160823:114437.690 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114438.690 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114438.690 In update_cpustats()
9:20160823:114438.690 End of update_cpustats()
9:20160823:114438.690 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114439.691 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114439.691 In update_cpustats()
9:20160823:114439.691 End of update_cpustats()
9:20160823:114439.691 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114440.691 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114440.691 In update_cpustats()
9:20160823:114440.692 End of update_cpustats()
9:20160823:114440.692 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114441.693 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114441.693 In update_cpustats()
9:20160823:114441.693 End of update_cpustats()
9:20160823:114441.693 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114442.695 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114442.695 In update_cpustats()
9:20160823:114442.695 End of update_cpustats()
9:20160823:114442.695 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114443.695 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114443.695 In update_cpustats()
9:20160823:114443.695 End of update_cpustats()
9:20160823:114443.695 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114444.696 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114444.696 In update_cpustats()
9:20160823:114444.696 End of update_cpustats()
9:20160823:114444.696 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114445.696 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114445.696 In update_cpustats()
9:20160823:114445.696 End of update_cpustats()
9:20160823:114445.696 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
10:20160823:114445.918 __zbx_zbx_setproctitle() title:'listener #1 [processing request]'
10:20160823:114445.918 Requested [docker.discovery]
10:20160823:114445.918 In zbx_module_docker_discovery_extended()
10:20160823:114445.918 In zbx_module_docker_socket_query()
10:20160823:114445.918 Docker's socket query: GET /containers/json?all=0 HTTP/1.0
10:20160823:114445.919 Docker's socket response: [{"Id":"36a8d6a8205c2c172a7af964c2fabb389ced225f62c0ca63001739df82d0e714","Names":["/zabbix-agent"],"Image":"zabbix-agent-xxl-limited","ImageID":"sha256:89c67ff2342ca05c509b6fa06db1dba16f3772a8a2bce1c5443e744f6aaa10c1","Command":"/zocker-xxl","Created":1471952672,"Ports":[{"IP":"0.0.0.0","PrivatePort":10050,"PublicPort":19999,"Type":"tcp"}],"Labels":{"com.docker.compose.config-hash":"9467516235ed9b22d621f06fb95985c860e6be1c05eb91ec1d332aac7c478dc6","com.docker.compose.container-number":"1","com.docker.compose.oneoff":"False","com.docker.compose.project":"zabbixagent","com.docker.compose.service":"zabbix-agent","com.docker.compose.version":"1.8.0"},"State":"running","Status":"Up 13 seconds","HostConfig":{"NetworkMode":"default"},"NetworkSettings":{"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"aedcffebd2b12615ace360cd45f86ae3cd871039e685e44c2957af04535c096c","EndpointID":"21bd3ca5ad5f732712e7f209f5dd16729e12c8b9dfd487c4b47e93f593d6c27a","Gateway":"172.17.0.1","IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:02"}}},"Mounts":[{"Source":"/var/run","Destination":"/var/run","Mode":"rw","RW":true,"Propagation":"rprivate"},{"Source":"/","Destination":"/rootfs","Mode":"rw","RW":true,"Propagation":"rprivate"}]},{"Id":"38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d","Names":["/test1"],"Image":"centos","ImageID":"sha256:97063303644439d9cea259b0e5f4b468633c90d88bf526acc67e5ae0a6e9427c","Command":"/bin/bash","Created":1471945997,"Ports":[],"Labels":{"build-date":"20160729","license":"GPLv2","name":"CentOS Base Image","vendor":"CentOS"},"State":"running","Status":"Up About an hour","HostConfig":{"NetworkMode":"default"},"NetworkSettings":{"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"aedcffebd2b12615ace360cd45f86ae3cd871039e685e44c2957af04535c096c","EndpointID":"1f6bac04ab01ea9d5bf73ac9f55c68fc5dbc061768e107046ecfba5063936da5","Gateway":"172.17.0.1","IPAddress":"172.17.0.3","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:03"}}},"Mounts":[]}]
10:20160823:114445.919 Parsed container name: zabbix-agent
10:20160823:114445.919 Parsed container id: 36a8d6a8205c2c172a7af964c2fabb389ced225f62c0ca63001739df82d0e714
10:20160823:114445.919 Parsed container name: test1
10:20160823:114445.919 Parsed container id: 38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d
10:20160823:114445.919 Sending back [{"data":[{"{#FCONTAINERID}":"36a8d6a8205c2c172a7af964c2fabb389ced225f62c0ca63001739df82d0e714","{#SCONTAINERID}":"36a8d6a8205c","{#SYSTEM.HOSTNAME}":"36a8d6a8205c","{#HCONTAINERID}":"zabbix-agent"},{"{#FCONTAINERID}":"38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d","{#SCONTAINERID}":"38e7f694709e","{#SYSTEM.HOSTNAME}":"36a8d6a8205c","{#HCONTAINERID}":"test1"}]}]
10:20160823:114445.920 __zbx_zbx_setproctitle() title:'listener #1 [waiting for connection]'
9:20160823:114446.698 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114446.698 In update_cpustats()
9:20160823:114446.698 End of update_cpustats()
9:20160823:114446.698 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114447.698 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114447.698 In update_cpustats()
9:20160823:114447.699 End of update_cpustats()
9:20160823:114447.699 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114448.699 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114448.699 In update_cpustats()
9:20160823:114448.699 End of update_cpustats()
9:20160823:114448.699 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114449.700 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114449.700 In update_cpustats()
9:20160823:114449.701 End of update_cpustats()
9:20160823:114449.701 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114450.701 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114450.701 In update_cpustats()
9:20160823:114450.701 End of update_cpustats()
9:20160823:114450.701 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
10:20160823:114451.307 __zbx_zbx_setproctitle() title:'listener #1 [processing request]'
10:20160823:114451.307 Requested [docker.discovery]
10:20160823:114451.307 In zbx_module_docker_discovery_extended()
10:20160823:114451.307 In zbx_module_docker_socket_query()
10:20160823:114451.307 Docker's socket query: GET /containers/json?all=0 HTTP/1.0
10:20160823:114451.308 Docker's socket response: [{"Id":"36a8d6a8205c2c172a7af964c2fabb389ced225f62c0ca63001739df82d0e714","Names":["/zabbix-agent"],"Image":"zabbix-agent-xxl-limited","ImageID":"sha256:89c67ff2342ca05c509b6fa06db1dba16f3772a8a2bce1c5443e744f6aaa10c1","Command":"/zocker-xxl","Created":1471952672,"Ports":[{"IP":"0.0.0.0","PrivatePort":10050,"PublicPort":19999,"Type":"tcp"}],"Labels":{"com.docker.compose.config-hash":"9467516235ed9b22d621f06fb95985c860e6be1c05eb91ec1d332aac7c478dc6","com.docker.compose.container-number":"1","com.docker.compose.oneoff":"False","com.docker.compose.project":"zabbixagent","com.docker.compose.service":"zabbix-agent","com.docker.compose.version":"1.8.0"},"State":"running","Status":"Up 18 seconds","HostConfig":{"NetworkMode":"default"},"NetworkSettings":{"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"aedcffebd2b12615ace360cd45f86ae3cd871039e685e44c2957af04535c096c","EndpointID":"21bd3ca5ad5f732712e7f209f5dd16729e12c8b9dfd487c4b47e93f593d6c27a","Gateway":"172.17.0.1","IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:02"}}},"Mounts":[{"Source":"/var/run","Destination":"/var/run","Mode":"rw","RW":true,"Propagation":"rprivate"},{"Source":"/","Destination":"/rootfs","Mode":"rw","RW":true,"Propagation":"rprivate"}]},{"Id":"38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d","Names":["/test1"],"Image":"centos","ImageID":"sha256:97063303644439d9cea259b0e5f4b468633c90d88bf526acc67e5ae0a6e9427c","Command":"/bin/bash","Created":1471945997,"Ports":[],"Labels":{"build-date":"20160729","license":"GPLv2","name":"CentOS Base Image","vendor":"CentOS"},"State":"running","Status":"Up About an hour","HostConfig":{"NetworkMode":"default"},"NetworkSettings":{"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"aedcffebd2b12615ace360cd45f86ae3cd871039e685e44c2957af04535c096c","EndpointID":"1f6bac04ab01ea9d5bf73ac9f55c68fc5dbc061768e107046ecfba5063936da5","Gateway":"172.17.0.1","IPAddress":"172.17.0.3","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:03"}}},"Mounts":[]}]
10:20160823:114451.308 Parsed container name: zabbix-agent
10:20160823:114451.309 Parsed container id: 36a8d6a8205c2c172a7af964c2fabb389ced225f62c0ca63001739df82d0e714
10:20160823:114451.309 Parsed container name: test1
10:20160823:114451.309 Parsed container id: 38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d
10:20160823:114451.309 Sending back [{"data":[{"{#FCONTAINERID}":"36a8d6a8205c2c172a7af964c2fabb389ced225f62c0ca63001739df82d0e714","{#SCONTAINERID}":"36a8d6a8205c","{#SYSTEM.HOSTNAME}":"36a8d6a8205c","{#HCONTAINERID}":"zabbix-agent"},{"{#FCONTAINERID}":"38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d","{#SCONTAINERID}":"38e7f694709e","{#SYSTEM.HOSTNAME}":"36a8d6a8205c","{#HCONTAINERID}":"test1"}]}]
10:20160823:114451.309 __zbx_zbx_setproctitle() title:'listener #1 [waiting for connection]'
9:20160823:114451.701 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114451.701 In update_cpustats()
9:20160823:114451.701 End of update_cpustats()
9:20160823:114451.701 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114452.703 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114452.703 In update_cpustats()
9:20160823:114452.703 End of update_cpustats()
9:20160823:114452.703 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114453.703 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114453.703 In update_cpustats()
9:20160823:114453.703 End of update_cpustats()
9:20160823:114453.703 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114454.704 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114454.704 In update_cpustats()
9:20160823:114454.704 End of update_cpustats()
9:20160823:114454.704 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
9:20160823:114455.705 __zbx_zbx_setproctitle() title:'collector [processing data]'
9:20160823:114455.705 In update_cpustats()
9:20160823:114455.705 End of update_cpustats()
9:20160823:114455.705 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
10:20160823:114456.460 __zbx_zbx_setproctitle() title:'listener #1 [processing request]'
10:20160823:114456.460 Requested [docker.discovery]
10:20160823:114456.460 In zbx_module_docker_discovery_extended()
10:20160823:114456.460 In zbx_module_docker_socket_query()
10:20160823:114456.460 Docker's socket query: GET /containers/json?all=0 HTTP/1.0
10:20160823:114456.462 Docker's socket response: [{"Id":"36a8d6a8205c2c172a7af964c2fabb389ced225f62c0ca63001739df82d0e714","Names":["/zabbix-agent"],"Image":"zabbix-agent-xxl-limited","ImageID":"sha256:89c67ff2342ca05c509b6fa06db1dba16f3772a8a2bce1c5443e744f6aaa10c1","Command":"/zocker-xxl","Created":1471952672,"Ports":[{"IP":"0.0.0.0","PrivatePort":10050,"PublicPort":19999,"Type":"tcp"}],"Labels":{"com.docker.compose.config-hash":"9467516235ed9b22d621f06fb95985c860e6be1c05eb91ec1d332aac7c478dc6","com.docker.compose.container-number":"1","com.docker.compose.oneoff":"False","com.docker.compose.project":"zabbixagent","com.docker.compose.service":"zabbix-agent","com.docker.compose.version":"1.8.0"},"State":"running","Status":"Up 23 seconds","HostConfig":{"NetworkMode":"default"},"NetworkSettings":{"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"aedcffebd2b12615ace360cd45f86ae3cd871039e685e44c2957af04535c096c","EndpointID":"21bd3ca5ad5f732712e7f209f5dd16729e12c8b9dfd487c4b47e93f593d6c27a","Gateway":"172.17.0.1","IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:02"}}},"Mounts":[{"Source":"/var/run","Destination":"/var/run","Mode":"rw","RW":true,"Propagation":"rprivate"},{"Source":"/","Destination":"/rootfs","Mode":"rw","RW":true,"Propagation":"rprivate"}]},{"Id":"38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d","Names":["/test1"],"Image":"centos","ImageID":"sha256:97063303644439d9cea259b0e5f4b468633c90d88bf526acc67e5ae0a6e9427c","Command":"/bin/bash","Created":1471945997,"Ports":[],"Labels":{"build-date":"20160729","license":"GPLv2","name":"CentOS Base Image","vendor":"CentOS"},"State":"running","Status":"Up About an hour","HostConfig":{"NetworkMode":"default"},"NetworkSettings":{"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"aedcffebd2b12615ace360cd45f86ae3cd871039e685e44c2957af04535c096c","EndpointID":"1f6bac04ab01ea9d5bf73ac9f55c68fc5dbc061768e107046ecfba5063936da5","Gateway":"172.17.0.1","IPAddress":"172.17.0.3","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:03"}}},"Mounts":[]}]
10:20160823:114456.462 Parsed container name: zabbix-agent
10:20160823:114456.462 Parsed container id: 36a8d6a8205c2c172a7af964c2fabb389ced225f62c0ca63001739df82d0e714
10:20160823:114456.462 Parsed container name: test1
10:20160823:114456.462 Parsed container id: 38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d
Problem:
7:20160823:114432.676 Cannot detect used docker driver
Could you provide your:
ls -lah /sys/fs/cgroup/cpu,cpuacct
1.docker-compose.yml zabbix-agent: image: zabbix-agent-xxl-limited container_name: zabbix-agent environment:
ports:
2.ls -lah /sys/fs/cgroup/cpu,cpuacct root@ubuntu:/opt/zabbix-agent# ls -lah /sys/fs/cgroup/cpu,cpuacct total 0 dr-xr-xr-x 6 root root 0 Aug 23 19:33 . drwxr-xr-x 13 root root 340 Aug 23 18:42 .. -rw-r--r-- 1 root root 0 Aug 23 21:48 cgroup.clone_children -rw-r--r-- 1 root root 0 Aug 23 21:48 cgroup.procs -r--r--r-- 1 root root 0 Aug 23 21:48 cgroup.sane_behavior -r--r--r-- 1 root root 0 Aug 23 21:48 cpuacct.stat -rw-r--r-- 1 root root 0 Aug 23 21:48 cpuacct.usage -r--r--r-- 1 root root 0 Aug 23 21:48 cpuacct.usage_percpu -rw-r--r-- 1 root root 0 Aug 23 18:47 cpu.cfs_period_us -rw-r--r-- 1 root root 0 Aug 23 18:47 cpu.cfs_quota_us -rw-r--r-- 1 root root 0 Aug 23 18:47 cpu.shares -r--r--r-- 1 root root 0 Aug 23 21:48 cpu.stat drwxr-xr-x 4 root root 0 Aug 23 18:51 docker drwxr-xr-x 2 root root 0 Aug 23 18:42 init.scope -rw-r--r-- 1 root root 0 Aug 23 21:48 notify_on_release -rw-r--r-- 1 root root 0 Aug 23 21:48 release_agent drwxr-xr-x 78 root root 0 Aug 23 18:42 system.slice -rw-r--r-- 1 root root 0 Aug 23 21:48 tasks drwxr-xr-x 2 root root 0 Aug 23 18:42 user.slice
3.systemd --version systemd 229 +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN
Great and please provide outputs:
cat /proc/mounts
ls -lah /sys/fs/cgroup/cpu,cpuacct/system.slice
ls -lah /sys/fs/cgroup/cpu,cpuacct/docker
root@ubuntu:/# cat /proc/mounts sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 udev /dev devtmpfs rw,nosuid,relatime,size=1516544k,nr_inodes=379136,mode=755 0 0 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=307148k,mode=755 0 0 /dev/sda3 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0 tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0 cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd 0 0 pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0 cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0 cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0 cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0 cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0 cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0 cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0 cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0 cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0 cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0 cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0 systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0 debugfs /sys/kernel/debug debugfs rw,relatime 0 0 mqueue /dev/mqueue mqueue rw,relatime 0 0 hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0 fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 /dev/sda1 /boot ext4 rw,relatime,data=ordered 0 0 tmpfs /run/lxcfs/controllers tmpfs rw,relatime,size=100k,mode=700 0 0 blkio /run/lxcfs/controllers/blkio cgroup rw,relatime,blkio 0 0 freezer /run/lxcfs/controllers/freezer cgroup rw,relatime,freezer 0 0 cpuset /run/lxcfs/controllers/cpuset cgroup rw,relatime,cpuset 0 0 hugetlb /run/lxcfs/controllers/hugetlb cgroup rw,relatime,hugetlb 0 0 cpu,cpuacct /run/lxcfs/controllers/cpu,cpuacct cgroup rw,relatime,cpu,cpuacct 0 0 net_cls,net_prio /run/lxcfs/controllers/net_cls,net_prio cgroup rw,relatime,net_cls,net_prio 0 0 pids /run/lxcfs/controllers/pids cgroup rw,relatime,pids 0 0 memory /run/lxcfs/controllers/memory cgroup rw,relatime,memory 0 0 devices /run/lxcfs/controllers/devices cgroup rw,relatime,devices 0 0 perf_event /run/lxcfs/controllers/perf_event cgroup rw,relatime,perf_event 0 0 name=systemd /run/lxcfs/controllers/name=systemd cgroup rw,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd 0 0 lxcfs /var/lib/lxcfs fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0 tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=307148k,mode=700,uid=1000,gid=1000 0 0 /dev/sda3 /var/lib/docker/aufs ext4 rw,relatime,errors=remount-ro,data=ordered 0 0 none /var/lib/docker/aufs/mnt/f4fd9637837a612f5acca2c7e6b0d9440bee27012f04601551e33fbcefffb9e5 aufs rw,relatime,si=9cedfdb12090852f,dio,dirperm1 0 0 shm /var/lib/docker/containers/38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=65536k 0 0 nsfs /run/docker/netns/5f74a2a83599 nsfs rw 0 0 none /var/lib/docker/aufs/mnt/c3162f8cffddb5fdbac4a1556386699ffbab4a598e5a5c1bc6e4279b6130aad9 aufs rw,relatime,si=9cedfdb12095652f,dio,dirperm1 0 0 shm /var/lib/docker/containers/1f7989fd70e9527f81d8eb20dd103f5e3ed87bf9a7387442ba3fef5acf1c330f/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=65536k 0 0 nsfs /run/docker/netns/2736c1aa8e03 nsfs rw 0 0
root@ubuntu:/# ls -lah /sys/fs/cgroup/cpu,cpuacct/system.slice total 0 drwxr-xr-x 78 root root 0 Aug 23 21:48 . dr-xr-xr-x 6 root root 0 Aug 23 19:33 .. drwxr-xr-x 2 root root 0 Aug 23 18:42 accounts-daemon.service drwxr-xr-x 2 root root 0 Aug 23 18:42 acpid.service drwxr-xr-x 2 root root 0 Aug 23 18:42 apparmor.service drwxr-xr-x 2 root root 0 Aug 23 18:42 apport.service drwxr-xr-x 2 root root 0 Aug 23 18:42 atd.service drwxr-xr-x 2 root root 0 Aug 23 18:42 boot.mount -rw-r--r-- 1 root root 0 Aug 23 22:13 cgroup.clone_children drwxr-xr-x 2 root root 0 Aug 23 18:47 cgroupfs-mount.service -rw-r--r-- 1 root root 0 Aug 23 22:13 cgroup.procs drwxr-xr-x 2 root root 0 Aug 23 18:42 console-setup.service -r--r--r-- 1 root root 0 Aug 23 22:13 cpuacct.stat -rw-r--r-- 1 root root 0 Aug 23 18:42 cpuacct.usage -r--r--r-- 1 root root 0 Aug 23 22:13 cpuacct.usage_percpu -rw-r--r-- 1 root root 0 Aug 23 18:42 cpu.cfs_period_us -rw-r--r-- 1 root root 0 Aug 23 18:42 cpu.cfs_quota_us -rw-r--r-- 1 root root 0 Aug 23 18:42 cpu.shares -r--r--r-- 1 root root 0 Aug 23 22:13 cpu.stat drwxr-xr-x 2 root root 0 Aug 23 18:42 cron.service drwxr-xr-x 2 root root 0 Aug 23 18:42 dbus.service drwxr-xr-x 2 root root 0 Aug 23 18:42 dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VB59451183\x2deb6cd015\x2dpart2.swap drwxr-xr-x 2 root root 0 Aug 23 18:42 dev-disk-by\x2dpath-pci\x2d0000:00:0d.0\x2data\x2d1\x2dpart2.swap drwxr-xr-x 2 root root 0 Aug 23 18:42 dev-disk-by\x2duuid-a5148635\x2da7d0\x2d4e8d\x2d979f\x2d6e75b54ebb31.swap drwxr-xr-x 2 root root 0 Aug 23 18:42 dev-hugepages.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 dev-mqueue.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 dev-sda2.swap drwxr-xr-x 2 root root 0 Aug 23 18:47 docker.service drwxr-xr-x 2 root root 0 Aug 23 18:42 grub-common.service drwxr-xr-x 2 root root 0 Aug 23 18:42 ifup@enp0s3.service drwxr-xr-x 2 root root 0 Aug 23 18:42 irqbalance.service drwxr-xr-x 2 root root 0 Aug 23 18:42 iscsid.service drwxr-xr-x 2 root root 0 Aug 23 18:42 keyboard-setup.service drwxr-xr-x 2 root root 0 Aug 23 18:42 kmod-static-nodes.service drwxr-xr-x 2 root root 0 Aug 23 18:42 lvm2-lvmetad.service drwxr-xr-x 2 root root 0 Aug 23 18:42 lvm2-monitor.service drwxr-xr-x 2 root root 0 Aug 23 18:42 lxcfs.service drwxr-xr-x 2 root root 0 Aug 23 18:42 lxd-containers.service drwxr-xr-x 2 root root 0 Aug 23 18:42 mdadm.service drwxr-xr-x 2 root root 0 Aug 23 18:42 -.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 networking.service -rw-r--r-- 1 root root 0 Aug 23 22:13 notify_on_release drwxr-xr-x 2 root root 0 Aug 23 18:46 ondemand.service drwxr-xr-x 2 root root 0 Aug 23 18:42 open-iscsi.service drwxr-xr-x 2 root root 0 Aug 23 18:42 polkitd.service drwxr-xr-x 2 root root 0 Aug 23 18:42 rc-local.service drwxr-xr-x 2 root root 0 Aug 23 18:42 resolvconf.service drwxr-xr-x 2 root root 0 Aug 23 18:42 rsyslog.service drwxr-xr-x 2 root root 0 Aug 23 18:58 run-docker-netns-5f74a2a83599.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-blkio.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-cpuset.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-cpu\x2ccpuacct.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-devices.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-freezer.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-hugetlb.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-memory.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-name\x3dsystemd.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-net_cls\x2cnet_prio.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-perf_event.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 run-lxcfs-controllers-pids.mount drwxr-xr-x 2 root root 0 Aug 23 18:46 run-user-1000.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 setvtrgb.service drwxr-xr-x 2 root root 0 Aug 23 18:42 snapd.service drwxr-xr-x 2 root root 0 Aug 23 18:42 ssh.service drwxr-xr-x 2 root root 0 Aug 23 18:42 sys-fs-fuse-connections.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 sys-kernel-debug.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-journald.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-journal-flush.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-logind.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-modules-load.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-random-seed.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-remount-fs.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-sysctl.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-timesyncd.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-tmpfiles-setup-dev.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-tmpfiles-setup.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-udevd.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-udev-trigger.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-update-utmp.service drwxr-xr-x 2 root root 0 Aug 23 18:42 systemd-user-sessions.service drwxr-xr-x 2 root root 0 Aug 23 18:42 system-getty.slice drwxr-xr-x 2 root root 0 Aug 23 18:42 system-systemd\x2dfsck.slice -rw-r--r-- 1 root root 0 Aug 23 22:13 tasks drwxr-xr-x 2 root root 0 Aug 23 18:42 ufw.service drwxr-xr-x 2 root root 0 Aug 23 18:58 var-lib-docker-aufs-mnt-f4fd9637837a612f5acca2c7e6b0d9440bee27012f04601551e33fbcefffb9e5.mount drwxr-xr-x 2 root root 0 Aug 23 18:58 var-lib-docker-aufs.mount drwxr-xr-x 2 root root 0 Aug 23 18:58 var-lib-docker-containers-38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d-shm.mount drwxr-xr-x 2 root root 0 Aug 23 18:42 var-lib-lxcfs.mount
root@ubuntu:/# ls -lah /sys/fs/cgroup/cpu,cpuacct/docker total 0 drwxr-xr-x 4 root root 0 Aug 23 21:48 . dr-xr-xr-x 6 root root 0 Aug 23 19:33 .. drwxr-xr-x 2 root root 0 Aug 23 21:33 1f7989fd70e9527f81d8eb20dd103f5e3ed87bf9a7387442ba3fef5acf1c330f drwxr-xr-x 2 root root 0 Aug 23 18:53 38e7f694709e5259acdc2be1280b4356ab2aa1bf4c86cf2df92770f87c35be3d -rw-r--r-- 1 root root 0 Aug 23 22:13 cgroup.clone_children -rw-r--r-- 1 root root 0 Aug 23 22:13 cgroup.procs -r--r--r-- 1 root root 0 Aug 23 22:13 cpuacct.stat -rw-r--r-- 1 root root 0 Aug 23 22:13 cpuacct.usage -r--r--r-- 1 root root 0 Aug 23 22:13 cpuacct.usage_percpu -rw-r--r-- 1 root root 0 Aug 23 22:13 cpu.cfs_period_us -rw-r--r-- 1 root root 0 Aug 23 22:13 cpu.cfs_quota_us -rw-r--r-- 1 root root 0 Aug 23 22:13 cpu.shares -r--r--r-- 1 root root 0 Aug 23 22:13 cpu.stat -rw-r--r-- 1 root root 0 Aug 23 22:13 notify_on_release -rw-r--r-- 1 root root 0 Aug 23 22:13 tasks
How did you install your docker? I need package name and repo (lxc-docker, docker-engine, docker-io....).
Installed docker by following the steps of official docs. Is there something wrong with my docker installation?
package name like this? root@ubuntu:/# dpkg -s docker-engine Package: docker-engine Status: install ok installed Priority: optional Section: admin Installed-Size: 99305 Maintainer: Docker support@docker.com Architecture: amd64 Version: 1.12.1-0~xenial Depends: iptables, init-system-helpers (>= 1.18~), lsb-base (>= 4.1+Debian11ubuntu7), libapparmor1 (>= 2.6~devel), libc6 (>= 2.17), libdevmapper1.02.1 (>= 2:1.02.97), libltdl7 (>= 2.4.6), libseccomp2 (>= 2.1.0), libsystemd0 Recommends: aufs-tools, ca-certificates, cgroupfs-mount | cgroup-lite, git, xz-utils, apparmor Conflicts: docker (<< 1.5~), docker-engine-cs, docker.io, lxc-docker, lxc-docker-virtual-package Conffiles: /etc/default/docker ddb6348855959363f63b73853c21f4d0 /etc/init.d/docker 4f359b4b495b8cb6bf0c3fc76fc0afc5 /etc/init/docker.conf a3cf502224ffae47dd79f59c82cdd332 Description: Docker: the open-source application container engine Docker is an open source project to build, ship and run any application as a lightweight container . Docker containers are both hardware-agnostic and platform-agnostic. This means they can run anywhere, from your laptop to the largest EC2 compute instance and everything in between - and they don't require you to use a particular language, framework or packaging system. That makes them great building blocks for deploying and scaling web apps, databases, and backend services without depending on a particular stack or provider. Homepage: https://dockerproject.org
Did you install Docker 1.12 from scratch? I'll need to install Ubuntu 16 locally to test your issue; CentOS 7 works fine. Maybe it's newer systemd, I don't know for now. Anyway thx for report.
yes, I installed the docker from scratch, from official docs until this step Verify docker is installed correctly. $ sudo docker run hello-world
Thanks for spending the time to answer :-)
Fixed. Please pull :latest
image and test it. Thx.
latest image worked fine! ;-) Thank you for all your assistance. I really appreciate your help in resolving the problem.
I started one zabbix-agent-xxl container in Ubuntu 16.04.1 LTS.
and got this result from zabbix-3.0-xxl:
docker.up/systemd.up check is not available at the moment - no cpu_cgroup directory
and got these logs from zabbix-agent-xxl container:
Starting Zabbix Agent [c5cb80f7158b]. Zabbix 3.0.3 XXL (2016-06-26) (revision {ZABBIX_REVISION}). Press Ctrl+C to exit.
my docker version: Docker version 1.12.1, build 23cf638