问题1:

查看zabbix-server日志发现报错

 tailf /var/log/zabbix/zabbix_server.log|grep 172.16.2.59
 27671:20180107:100706.042 cannot send list of active checks to "172.16.2.59": host [HOSTNAME] not found
 27670:20180107:100906.086 cannot send list of active checks to "172.16.2.59": host [HOSTNAME] not found
 27670:20180107:101106.118 cannot send list of active checks to "172.16.2.59": host [HOSTNAME] not found

原因

查看对应主机配置文件,发现主机名未配置:

cat /etc/zabbix/zabbix_agentd.conf | grep Hostname
Hostname=HOSTNAME

解决办法:

1、修改hostname与web界面主机名一致

vim zabbix_agentd.conf 

2、重启对应服务器的zabbix客户端

/etc/init.d/zabbix-agent restart
Shutting down Zabbix agent:                                [  OK  ]
Starting Zabbix agent:                                     [  OK  ]

问题2

在zabbix-server上调用对应的键值报错

zabbix_get -s 172.16.2.59 -k zabbix_low_discovery[redis]
(Not all processes could be identified, non-owned process info

原因

查看/etc/sudoer文件,发现未进行免密配置

解决办法

修改对应服务器的/etc/sudoer文件,添加下边两行

zabbix      ALL=(root)      NOPASSWD:/bin/netstat, /app/jdk/bin/jps
Defaults:zabbix !requiretty