1.zabbix-mysql 数据库
sudo docker pull zabbix/zabbix-server-mysql
sudo docker run --name some-zabbix-server-mysql -p 10051:10051 --net=host -e DB_SERVER_HOST="172.18.168.214" -e DB_SERVER_PORT=3366 -e MYSQL_USER="root" -e MYSQL_PASSWORD="f6914da5f9" -d zabbix/zabbix-server-mysql
2.服务端运行环境
sudo docker pull zabbix/zabbix-web-apache-mysql
sudo docker run --name some-zabbix-web-apache-mysql -p 8088:80 -e DB_SERVER_HOST="127.0.0.1" -e DB_SERVER_PORT=3306 -e MYSQL_USER="root" -e MYSQL_PASSWORD="f6914da5f9" -e ZBX_SERVER_HOST="172.18.168.214" -e TZ="Asia/Shanghai" -d zabbix/zabbix-web-apache-mysql
3.zabbix 登录页面,默认帐号为Admin 密码为 zabbix
4.客户端
sudo docker pull zabbix/zabbix-agent
sudo docker run --name some-zabbix-agent -p 10050:10050 -e ZBX_HOSTNAME="hostname" -e ZBX_SERVER_HOST="172.18.168.214" -e ZBX_SERVER_PORT=10051 -d zabbix/zabbix-agent
5.开放对外端口访问