vi /etc/zabbix/zabbix_agentd.conf Server=192.168.254.128 #(提供zabbix-server的服务器ip) ServerActive=192.168.254.128 #(跟上面一条同样,主动模式) HostName=ZBS # 自定义的主机名,在web界面下须要设置跟这个同样。
[root@localhost ~]# systemctl start zabbix-agent [root@localhost ~]# systemctl enable zabbix-agent
iptables -I INPUT -s 192.168.254.137 -j ACCEPT 这是server服务器写的规则 iptables -I INPUT -s 192.168.254.128 -j ACCEPT 这是agent上写的规则。