yum -y install zabbix-agent #yum默认安装最新版本的
vim /etc/zabbix/zabbix_agentd.conf Server=10.127.0.133 #被动模式 ServerActive=10.127.0.133 #主动模式 Hostname=*** # 需要与agent主机名称一致
tailf /var/log/zabbix/zabbix-agent.conf 2645:20190411:181453.092 Starting Zabbix Agent [cs_linux]. Zabbix 4.2.6 (revision d3bb18bbc4). 2645:20190411:181453.092 **** Enabled features **** 2645:20190411:181453.092 IPv6 support: YES 2645:20190411:181453.092 TLS support: YES 2645:20190411:181453.092 ************************** 2645:20190411:181453.092 using configuration file: /etc/zabbix/zabbix_agentd.conf 2645:20190411:181453.094 agent #0 started [main process] 2649:20190411:181453.104 agent #4 started [listener #3] 2646:20190411:181453.108 agent #1 started [collector] 2647:20190411:181453.113 agent #2 started [listener #1] 2650:20190411:181453.116 agent #5 started [active checks #1] 2648:20190411:181453.120 agent #3 started [listener #2] 2650:20190411:181453.352 no active checks on server [192.168.146.133:10051]: host [cs_linux] not found #发现已经启动,但是还主机还没有被发现
(这里我关联的是zabbix自带的模板)
可以看到,触发器已经触发报警了
欢×××