📜  在 [192.168.0.3] 处收到来自 zabbix 代理的空响应.假设代理由于访问权限而断开连接. - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:20.703000             🧑  作者: Mango

代码示例1
# FOR step-by-step guide of running latest zabbix version 5.0 follow these links
# https://blog.zabbix.com/zabbix-docker-containers/7150/
# https://techexpert.tips/zabbix/monitoring-docker-using-zabbix/

#it's simple just add all zabbix server IPs in zabbix host agent  conf #file like below


Server=192.168.101.11,172.1.16.1
ServerActive=192.168.101.11,172.1.16.1


if you ur using zabbix server-agent model using docker containers then while deploying containers specify zabbix server Host/Container IPs which wants to connect to zabbix agent container

Assuming if you wanna deploy zabbix server and agent in the same server running docker containers just run below docker deploy commands 


#Zabbix Server Container
sudo docker run --name zabbix-appliance -p 8080:80 -p 10051:10051 -d -h zabbix-server zabbix/zabbix-appliance

#Zabbix Agent container
sudo docker run --name=dockbix-agent-xxl   --privileged   -v /:/rootfs   -v /var/run:/var/run -p 10050:10050   -e "ZA_Server=192.168.0.3,172.17.0.1" -e "ZA_ServerActive=192.168.0.3,172.17.0.1"   -d monitoringartist/dockbix-agent-xxl-limited:latest

#Default username and password of zabbix server
#username: Admin password: zabbix
# For monitoring docker containers resources import a template from this cloned repository https://github.com/monitoringartist/zabbix-docker-monitoring