Comments (11)
Yes, you have to remove the zabbix-agent container and start a new one every time. I recommend to use it as a systemd
service, so you can create service "hook" which will remove container before start.
from dockbix-agent-xxl.
How did you restart container?
from dockbix-agent-xxl.
I have the exact same problem (Error #10 on container restart). I've restarted my container by rebooting by computer. However, even if I just do a "docker stop zabbix-agent-xxl" followed by a "docker start zabbix-agent-xxl", I run into the same issue (Error #10). My docker run is slightly different though:
docker run \
--name=zabbixagent-xxl \
-p 10250:10050 \
-v /:/rootfs \
-v /var/run:/var/run \
-e "ZA_Server=monitoring.domain.local" \
-e "ZA_ServerActive=monitoring.domain.local" \
-h docker-agent-1 \
-d --restart=always monitoringartist/zabbix-agent-xxl-limited:latest
from dockbix-agent-xxl.
--restart=always
Unfortunately restart policy is not supported. At least not in public free image. I have idea how to fix it, but I don't want to waste my time.
To be honest I don't like Docker restart policy. IMO it's should be task of your Docker orchestration.
from dockbix-agent-xxl.
Ok. However, even if I remove the restart policy from the run command, I still run into the same issue if I do a "docker stop" followed by "docker start". Are you saying that stopping and starting the container aren't supported at all? The only way to use this is removing the container and rebuilding it each time? (Just trying to confirm)
Thanks!
from dockbix-agent-xxl.
docker stop
+ docker start
= docker restart
= --restart=always
= still the same problem.
Yes, you need to remove old zabbix-agent container and start new one in your case. Container is stateless, so it's not a problem.
from dockbix-agent-xxl.
Does this mean that if a machine reboots, we will have to remove the zabbix-agent container and start a new one every time ?
from dockbix-agent-xxl.
I've got the same issue, and that's quite weird, if I need to recreate container each time instead of just start it again.
Can you put more description for #10 error? Maybe it's possible to solve this issue by user?
from dockbix-agent-xxl.
#10 is in this case: wrapper code was not able to start zabbix-agentd
properly
It's expected behaviour/architecture design and you are not able to solve it from the user space.
from dockbix-agent-xxl.
systemd example - https://github.com/monitoringartist/zabbix-agent-xxl#dockerized-zabbix-agent-xxl-service-managed-by-systemd
from dockbix-agent-xxl.
+1 & solve my problem thanks.
from dockbix-agent-xxl.
Related Issues (20)
- Restart not working HOT 1
- Ghost Container HOT 2
- private paid image limitations HOT 1
- Global regular expression "Exclude Docker related file systems" does not exist. HOT 4
- panic: runtime error: invalid memory address or nil pointer dereference HOT 1
- Cannot get process number in container with dockbix-agent HOT 10
- Cannot open memory.stat file and cannot get statistic HOT 2
- Can't see any data about containers HOT 2
- Dockbix agent XXL - enable TLS configuration HOT 14
- TLS support HOT 3
- Server can't get any info from agent HOT 3
- no network and filesystem metrics HOT 1
- license is not clear if it's allowed to be copied in a form of docker copy HOT 2
- Can DockBix Agent work on AWS Fargate HOT 1
- How to get custom content, such as how many times to get docker restart HOT 1
- too many levels of symbolic links
- Privileged flag not documented HOT 1
- Mounted filesystem discovery when using dockbix-agent-xxl
- Zabbix / DockAgent issue HOT 6
- Require Linux/ARM64 docker image for monitoringartist/dockbix-agent-xxl-limited. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockbix-agent-xxl.