自動發現與自動注冊
自動發現:
自動注冊:
自動發現—被動模式
建立發現動作
配置動作
在操作中添加
檢視是否成功
做hosts解析就會出現cache01 ----服務端
[root@m01 ~]# vim /etc/hosts
172.16.1.21 cache01
删除原有主機再發現
自動注冊----主動模式
停用主動發現,動作,主機
[root@cache01 ~]# vim /etc/zabbix/zabbix_agentd.conf
95 server=172.16.1.61
136 serveractive=172.16.1.61
147 #hostname=zabbix server
155 hostnameitem=system.hostname
與備份檔案對比
[root@cache01 ~]# diff /etc/zabbix/zabbix_agentd.conf*
95c95
< server=172.16.1.61
---
> server=127.0.0.1
136c136
< serveractive=172.16.1.61
> serveractive=127.0.0.1
147c147
< #hostname=zabbix server
> hostname=zabbix server
155c155
< hostnameitem=system.hostname
> # hostnameitem=system.hostname
重新開機服務
[root@cache01 ~]# systemctl restart zabbix-agent.service
[root@cache01 ~]# netstat -tunlp|grep zabbix
tcp 0 0 0.0.0.0:10050 0.0.0.0:* listen 1966/zabbix_agentd
tcp6 0 0 :::10050 :::* listen 1966/zabbix_agentd
建立動作
添加動作
添加操作 --主機—主機群組—模闆