monitoringartist / dockbix-agent-xxl

:whale: Dockerized Zabbix agent with Docker metrics and host metrics support for CoreOS, RHEL, CentOS, Ubuntu, Debian, Fedora, Boot2docker, Photon OS, Amazon Linux, ...
https://hub.docker.com/r/monitoringartist/dockbix-agent-xxl-limited/
Other
182 stars 54 forks source link

Question: How to set AllowRoot #17

Closed mgdsxhy closed 8 years ago

mgdsxhy commented 8 years ago

Hi I'm useing the zabbix-agent-xxl monitor docker container. I monitor the interface net metrics with the key: docker.xnet[/{#HCONTAINERID},all,TX-OK]. But can't get any values.
I want modify the config file zabbix_agent.cnf in the zabbix-agent-xxl container, But appear follow error:

docker ps -a

fbf1e9182507 monitoringartist/zabbix-agent-xxl-limited:latest "/zocker-xxl" 4 seconds ago Up 3 seconds 0.0.0.0:10050->10050/tcp zabbix-agent-xxl

docker exec -it fbf1e9182507 /bin/bash

rpc error: code = 2 desc = oci runtime error: exec failed: exec: "/bin/bash": stat /bin/bash: no such file or directory

How can I do set the AllowRoot=1

jangaraj commented 8 years ago

I recommend to read readme. Answers are already there - https://github.com/monitoringartist/zabbix-agent-xxl

tl;dr;

=> Install zabbix agent and load module https://github.com/monitoringartist/zabbix-docker-monitoring