Create automatic discovery rules
Add ip range
Client Installation 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
The client starts with a 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]#
Creating a discovery action (action) after ip
Configuration action (operation)
Setting action of the specific operation
Check whether to automatically discover and monitor