monitoringartist / zabbix-docker-monitoring

:whale: Docker/Kubernetes/Mesos/Marathon/Chronos/LXC/LXD/Swarm container monitoring - Docker image, Zabbix template and C module
https://hub.docker.com/r/monitoringartist/zabbix-agent-xxl-limited/
GNU General Public License v2.0
1.19k stars 268 forks source link

ZBX_NOTSUPPORTED: Cannot create /var/run/netns #103

Closed jc36 closed 6 years ago

jc36 commented 6 years ago

I used the AllowRoot=1 option and checked that inside the container it was added to zabbix_agentd.conf:

$ docker run --restart=always --name=zabbix-agent-xxl -h $(hostname) -p 10050:10050 -v /:/rootfs -v /var/run:/var/run -e "ZA_Server=10.xx.xx.xx" -e "AllowRoot=1" -d monitoringartist/zabbix-agent-xxl-limited:latest

$ docker cp zabbix-agent-xxl:/etc/zabbix/zabbix_agentd.conf -|grep -a AllowRoot AllowRoot=1 #output

After that I get the same error "Cannot create /var/run/netns"

jangaraj commented 6 years ago

Please use dockbix agent image and read readme for configuration options - https://github.com/monitoringartist/dockbix-agent-xxl