1. 程式人生 > >run zabbix with docker

run zabbix with docker

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