标签:vim 范围 and image bsp 启动 规则 bridge rest
创建自动发现规则
添加 ip 范围
客户端安装zabbix-agent
[root@node1 ~]# docker load -i zabbix_agent.tar.gz 23f7bd114e4a: Loading layer 5.06MB/5.06MB 27e518624db6: Loading layer 555kB/555kB e5b884ab93ba: Loading layer 207.9kB/207.9kB 33cc03783657: Loading layer 245.8kB/245.8kB a2e8e82f3939: Loading layer 13.31kB/13.31kB b3f0137f115f: Loading layer 13.59MB/13.59MB 4d5294794a56: Loading layer 45.06kB/45.06kB Loaded image: zabbix/zabbix-agent:latest [root@node1 ~]# [root@node1 ~]# cd /opt/cmp_zabbix_agent/ [root@node1 cmp_zabbix_agent]# [root@node1 cmp_zabbix_agent]# vim docker-compose.yml version: ‘3‘ services: zabbix-agent: image: zabbix/zabbix-agent:latest container_name: zabbix-agent environment: - ZBX_HOSTNAME=node1 - ZBX_SERVER_HOST=192.168.210.128 - ZBX_SERVER_PORT=10051 - TZ=‘Asia/Shanghai‘ network_mode: bridge ports: - "10050:10050" restart: always privileged: true
客户端用docker-compose启动zabbix-agent
[root@node1 cmp_zabbix_agent]# docker-compose up -d Creating zabbix-agent ... done [root@node1 cmp_zabbix_agent]# [root@node1 cmp_zabbix_agent]# docker-compose ps Name Command State Ports ---------------------------------------------------------------------- zabbix-agent docker-entrypoint.sh Up 0.0.0.0:10050->10050/tcp [root@node1 cmp_zabbix_agent]#
创建发现ip后的 action(动作)
配置action(动作)
配置action 的具体操作
查看是否自动发现并监控
标签:vim 范围 and image bsp 启动 规则 bridge rest
原文地址:https://www.cnblogs.com/cloudhere/p/11031152.html