Zabbix 3.0 docker-based#

See https://hub.docker.com/r/zabbix/zabbix-3.0/.

Fire up data container first :
docker run -d -v /var/lib/mysql --name zabbix-db-storage busybox:latest

Then start the zabbix DB container:

docker run \
    -d \
    --name zabbix-db \
    -v /backups:/backups \
    --volumes-from zabbix-db-storage \
    --env="MARIADB_USER=zabbix" \
    --env="MARIADB_PASS=my_password" \
    zabbix/zabbix-db-mariadb

This will pull the docker image if you don't have it yet.

Then fire up the zabbix engine itself:

docker run \
    -d \
    --name zabbix \
    -p 80:80 \
    -p 10051:10051 \
    --link zabbix-db:zabbix.db \
    --env="ZS_DBHost=zabbix.db" \
    --env="ZS_DBUser=zabbix" \
    --env="ZS_DBPassword=my_password" \
    zabbix/zabbix-3.0:dev    

Wait about 2 minutes and go to the webinterface at port 80 with user and password Admin:zabbix

API usage#

See my gitblit for details there.

Zabbix agent on coreos:#

docker run \
-d \
-p 10050:10050 \
-v /proc:/proc \
-v /sys:/sys \
-v /dev:/dev \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /my-zabbix-agent-config.conf:/etc/zabbix_agentd.conf \
--env="ZABBIX_SERVER=10.0.0.190" \
million12/zabbix-agent