run zabbix with docker
Posted TonyBen2018
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了run zabbix with docker相关的知识,希望对你有一定的参考价值。
#!/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的主要内容,如果未能解决你的问题,请参考以下文章
zabbix server is not running端口未开启10051
zabbix安装后提示:Zabbix server is not running
10 Zabbix4.4.0-告警“Zabbix server is not running”
zabbix提示zabbix server is not running &Get value from agent failed: cannot connect to