zabbix圖形刷新延遲解決


環境:

服務端    ip :192.168.1.204       hostname:www.test.com

服務端    ip :192.168.1.206       hostname:www.test3.com

 

1、查看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 found

 

2、解決

2.1、修改zabbix_server和客戶端的hosts

服務端:

[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

客戶端:

[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.1、修改zabbix客戶端配置文件里面Hostname

sed -i 's/Hostname=Zabbix server/Hostname=www.test.com/g' /usr/local/zabbix/etc/zabbix_agentd.conf

 

2.3、重啟這兩台機器

2.4、重啟zabbix_server 、zabbix_agent(必須)

2.5、測試下載東西,然后刷新瀏覽器,看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.6、用火狐瀏覽器打開zabbix,然后設置火狐瀏覽器自動刷新網頁,就會時刻看到發生的變化

 

3、調整zabbix_server參數

3.1、按照下面修改

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.2、重啟zabbix_server

 

 

參照文檔:

https://blog.csdn.net/wang725/article/details/80790400

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM