Skip to content

Instantly share code, notes, and snippets.

@fabiocruzcoelho
Last active December 14, 2016 16:35
Show Gist options
  • Save fabiocruzcoelho/f9954dc01f8f73d7510bacabb17fbb89 to your computer and use it in GitHub Desktop.
Save fabiocruzcoelho/f9954dc01f8f73d7510bacabb17fbb89 to your computer and use it in GitHub Desktop.
Zabbix 3.0 - server, web, snmpd with additional XXL community extensions
# Docker Zabbix 3.2
# create /var/lib/mysql as persistent volume storage
docker run -d -v /var/lib/mysql --name zabbix-db-storage busybox:latest
# Criando Contaners Banco de Dados
docker run \
-d \
--name zabbix-db \
--env="MARIADB_USER=zabbix" \
--env="MARIADB_PASS=my_password" \
monitoringartist/zabbix-db-mariadb
# Criando Contaners Zabbix Server
docker run \
-d \
--name zabbix \
-p 80:80 \
-p 10051:10051 \
-v /etc/localtime:/etc/localtime:ro \
--link zabbix-db:zabbix.db \
--env="ZS_DBHost=zabbix.db" \
--env="ZS_DBUser=zabbix" \
--env="ZS_DBPassword=my_password" \
--env="XXL_zapix=true" \
--env="XXL_grapher=true" \
--env="SNMPTRAP_enabled=true" \
--env="ZW_ZBX_SERVER_NAME=EMPRESA" \
monitoringartist/zabbix-xxl:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment