Zabbix can manually add agent client, when the number of hosts more than a long time, then the manual duplication of work will greatly increase. Zabbix's auto-discovery feature can help us solve this problem.
Preparation conditions:
1. The monitored host is loaded with Zabbix-agent,
[Email protected] ~]# Netstat-tunlp|grep 10050
TCP 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 4697/zabbix_agentd
TCP6 0 0::: 10050:::* LISTEN 4697/zabbix_agentd
2. Iptables let go of 10050 ports and 10051 ports, I shut down here directly iptables
Configuration:
One, client changes/etc/zabbix/zabbix_agentd.conf file
[Email protected] ~]# grep-e ' ^server|^hostname '/etc/zabbix/zabbix_agentd.conf
server=192.168.0.195
serveractive=192.168.0.199
Hostname=node7
Second, Zabbix-server Web configuration
1. Create Discovery
2. Automatically add to Linux server and Hadoop_cluster Group, link template Linux os
See if a host joins
View Host List
The host discovery configuration was successful
Zabbix-server Auto Discovery, Bulk add hosts, and link templates