Giter Club home page Giter Club logo

Comments (21)

jangaraj avatar jangaraj commented on August 18, 2024

How did you start container? Used OS, ....?

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

this directory exist, but it has one subdir - this zabbix-agent container

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

all containers started by docker-compose

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

other containers started by systemd service

cat nginx.service

[Unit]
Description=nginx container
Requires=docker.service
After=docker.service

[Service]
Restart=on-failure
RestartSec=3
ExecStart=/usr/local/bin/docker-compose -f /data/nginx/docker-compose.yml up
ExecStop=/usr/local/bin/docker-compose -f /data/nginx/docker-compose.yml stop

[Install]
WantedBy=multi-user.target

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

zabbix-agent started by

docker-compose up -d

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on August 18, 2024

Is it problem with memory cgroup #3?

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

thats was on debian and now its resolved...

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

mount | grep memory

cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

centos already have enabled memory cgroup

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on August 18, 2024

Is your monitored container up and running?

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

yes of course

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2a55ce74a3dc monitoringartist/zabbix-agent-xxl-limited:latest "/zocker-xxl" 17 hours ago Up 17 hours 0.0.0.0:10050->10050/tcp zabbixagent_zabbix-agent_1
6123c6781382 postgres:9.4 "/docker-entrypoint.s" 27 hours ago Up 27 hours 5432/tcp postgres_postgres_1
2912c32848cb nginx:latest "nginx -g 'daemon off" 12 days ago Up 12 days 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp nginx_nginx_1

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on August 18, 2024

So which container ID is not able to monitor?

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

ls -l /sys/fs/cgroup/memory/docker/

итого 0
drwxr-xr-x. 2 root root 0 апр 11 19:17 2a55ce74a3dca16bba37edf8867e1451d95930a855566679ccb3641b0d4c2f76
-rw-r--r--. 1 root root 0 апр 11 19:01 cgroup.clone_children
--w--w--w-. 1 root root 0 апр 11 19:01 cgroup.event_control
-rw-r--r--. 1 root root 0 апр 11 19:01 cgroup.procs
-rw-r--r--. 1 root root 0 апр 11 19:01 memory.failcnt
--w-------. 1 root root 0 апр 11 19:01 memory.force_empty
... other files

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

all containers exclude this zabbix-agent-xxl-limited

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on August 18, 2024

Is memory.stat there and has zabbix user permission to read this file?

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

-r--r--r--. 1 root root 0 апр 11 19:01 memory.stat

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on August 18, 2024

Problem:
Cannot open Docker container metric file: '/rootfs/sys/fs/cgroup/memory/docker/aae2d2c7b5a71052c61b1a4cf23141742b58a3d0e00b341a106cb6b6508b537b/memory.stat'

Docker ps:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2a55ce74a3dc monitoringartist/zabbix-agent-xxl-limited:latest "/zocker-xxl" 17 hours ago Up 17 hours 0.0.0.0:10050->10050/tcp zabbixagent_zabbix-agent_1
6123c6781382 postgres:9.4 "/docker-entrypoint.s" 27 hours ago Up 27 hours 5432/tcp postgres_postgres_1
2912c32848cb nginx:latest "nginx -g 'daemon off" 12 days ago Up 12 days 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp nginx_nginx_1

=> No, your container aae2d2c7b5a71052c... is not running => not a problem, containers will be rediscovered (it depends on your LLD rule settings).

I'm closing this issue. Please open new issue, if you have still see this issue, but please provide also proper investigation in the first post - this is not a chat.

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

That container started, but not in this listing. This problem for all started containers exclude zabbix-agent

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

Reopen this issue and read carefully please :-)

from dockbix-agent-xxl.

elderone avatar elderone commented on August 18, 2024

recreate containers with remove olds resolved this issue

from dockbix-agent-xxl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.