環境:mysql
服務端 ip :192.168.1.204 hostname:www.test.comsql
服務端 ip :192.168.1.206 hostname:www.test3.comcentos
一、查看zabbix_server日誌瀏覽器
20477:20181210:031034.692 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not found
20477:20181210:031048.065 cannot send list of active checks to "192.168.1.206": host [Zabbix server] not found
20515:20181210:031234.832 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not found
20494:20181210:031248.193 cannot send list of active checks to "192.168.1.206": host [Zabbix server] not found
20514:20181210:031434.949 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not found
20514:20181210:031448.334 cannot send list of active checks to "192.168.1.206": host [Zabbix server] not found
20478:20181210:031634.075 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not foundapp
二、解決dom
2.一、修改zabbix_server和客戶端的hosts測試
服務端:.net
[mysql@www ~]$ sudo cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.204 www.test.com
192.168.1.206 www.test3.com日誌
客戶端:server
[root@www ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.204 www.test.com
192.168.1.206 www.test3.com
2.一、修改zabbix客戶端配置文件裏面Hostname
sed -i 's/Hostname=Zabbix server/Hostname=www.test.com/g' /usr/local/zabbix/etc/zabbix_agentd.conf
2.三、重啓這兩臺機器
2.四、重啓zabbix_server 、zabbix_agent(必須)
2.五、測試下載東西,而後刷新瀏覽器,看zabbix的流量圖是否發生變化
wget http://mirrors.aliyun.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso
不要用ping -l 65500 192.168.1.206 ping是測試不出來的
2.六、用火狐瀏覽器打開zabbix,而後設置火狐瀏覽器自動刷新網頁,就會時刻看到發生的變化
三、調整zabbix_server參數
3.一、按照下面修改
vi /usr/local/zabbix/etc/zabbix_server.conf
StartPollers=160
StartPollersUnreacheable=80
StartTrappers=20
StartPingers=100
StartDiscoverers=120
Cachesize=1024M
startDBSyncers=16
HistoryCacheSize=1024M
TrendCacheSize=1024M
HIstoryTextCacheSize=512M
3.二、重啓zabbix_server
參照文檔:
https://blog.csdn.net/wang725/article/details/80790400