Giter Club home page Giter Club logo

Comments (10)

jangaraj avatar jangaraj commented on July 19, 2024

I don't see any issue with dockbix-agent-xxl. Be familiar with proc.num configuration https://www.zabbix.com/documentation/3.4/manual/config/items/itemtypes/zabbix_agent and configure your item correctly.

from dockbix-agent-xxl.

 avatar commented on July 19, 2024

hi jangaraj!
[root@lcshop-zabbix ~]# zabbix_get -s 172.31.0.66 -k 'proc.num[,,,zabbix_agentd]'
6
[root@lcshop-zabbix ~]# zabbix_get -s 172.16.0.195 -k 'proc.num[,,,zabbix_agentd]'
0

172.31.0.66 is normal zabbix-agent 3.4.5 and 172.16.0.195 is dockbix-agent-xxl,but the results of "proc.num[,,,zabbix_agentd]" are different,why that happened?

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on July 19, 2024

How did you start agent container?

from dockbix-agent-xxl.

 avatar commented on July 19, 2024
docker run   --name=dockbix   \
  --net=host   --privileged   -v /:/rootfs \
  -v /var/run:/var/run   --restart unless-stopped   -e "ZA_Server=172.31.0.77"  \
  -e "ZA_ServerActive=172.31.0.77"   -d \
  hub.c.163.com/canghai809/dockbix-agent-xxl-limited:latest

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on July 19, 2024

Sorry, hub.c.163.com/canghai809/dockbix-agent-xxl-limited:latest is not image in my responsibility, so I can't support any third party image.

from dockbix-agent-xxl.

 avatar commented on July 19, 2024

hi jangaraj,
i change your images:
[root@lcshop-ecadmin-001 docker]# docker run \

--name=dockbix-agent-xxl
--net=host
--privileged
-v /:/rootfs
-v /var/run:/var/run
--restart unless-stopped
-e "ZA_Server=172.31.0.77"
-e "ZA_ServerActive=172.31.0.77"
-d monitoringartist/dockbix-agent-xxl-limited:latest
4a5491a256233fb6fef096ed640091032756d0c981346cf7e2c07e11a552bdf0
[root@lcshop-ecadmin-001 docker]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4a5491a25623 monitoringartist/dockbix-agent-xxl-limited:latest "/dockbix-agent-xxl" 3 seconds ago Up 2 seconds dockbix-agent-xxl
6f84c1d9e5b9 registry.cn-hangzhou.aliyuncs.com/lechangeshop/ecadmin:20181012 "/bin/bash" 2 days ago Up 2 minutes 0.0.0.0:9099->80/tcp ecadmin

but i still can't get 'proc.num[,,,zabbix_agentd]'... please help me

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on July 19, 2024

Your container can be isolated. Try --pid=host to use host namespace.

from dockbix-agent-xxl.

 avatar commented on July 19, 2024

I delete both my apache2 container and dockbix container ,then run both of them with --pid=host.

OK ,i got it!thank U so much!
[root@lcshop-zabbix ~]# zabbix_get -s 172.16.0.195 -k 'proc.num[apache2]'
16

but please tell me how to attach dockbix? i found there is no /bin/bash in dockbix container.
[root@lcshop-ecadmin-001 docker]# docker exec -it 14a248486e53 /bin/bash
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: "/bin/bash": stat /bin/bash: no such file or directory": unknown

from dockbix-agent-xxl.

jangaraj avatar jangaraj commented on July 19, 2024

Be more familiar with namespaces - only agent needs host namespace.
You need paid image https://github.com/monitoringartist/dockbix-agent-xxl#public-limited-vs-private-paid-image if you want to use docker attach, a public limited image doesn't have any shell.

from dockbix-agent-xxl.

 avatar commented on July 19, 2024

thanks for ur answer

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.