run zabbix with docker
阿新 • • 發佈:2018-04-27
zab user admin use server mysq mysql sql bash
#!/bin/bash
docker run --name some-zabbix-server-mysql -p 10051:10051 --net=host -e DB_SERVER_HOST="10.245.247.75" -e DB_SERVER_PORT=3306 -e MYSQL_USER="root" -e MYSQL_PASSWORD="admin" -d zabbix/zabbix-server-mysql
docker run --name some-zabbix-web-apache-mysql -p 8088:80 -e DB_SERVER_HOST="10.245.247.75" -e DB_SERVER_PORT=3306 -e MYSQL_USER="root" -e MYSQL_PASSWORD="admin" -e ZBX_SERVER_HOST="10.245.247.75" -e TZ="Asia/Shanghai" -d zabbix/zabbix-web-apache-mysql
docker run --name some-zabbix-agent -p 10050:10050 -e ZBX_HOSTNAME="hostname" -e ZBX_SERVER_HOST="10.245.247.75" -e ZBX_SERVER_PORT=10051 -d zabbix/zabbix-agent
run zabbix with docker