Zabbix監控自身時告警“Zabbix value cache working in low memory mode”,出現這個問題是因為Zabbix Server的引數ValueCacheSize大小設定不合理,一般默認值為8M,

### Option: ValueCacheSize
# Size of history value cache, in bytes.
# Shared memory size for caching item history data requests.
# Setting to 0 disables value cache.
#
# Mandatory: no
# Range: 0,128K-64G
# Default:
# ValueCacheSize=8M
|
ValueCacheSize |
否 |
0,128K-64G |
8M |
歷史資料快取大小, 單位為位元組, |
|
ValueCacheSize |
no |
0,128K-64G |
8M |
Size of history value cache, in bytes. |
為了更快地計算觸發器運算式、計算或聚合型別監控項和一些宏,自ZABBIX 2.2起,ZABBIX Server支持值快取選項,
這個存放在記憶體中的快取,可以用于訪問歷史資料,而不需要對資料庫直接執行SQL呼叫,如果快取中不存在請求得歷史值,則會從資料庫請求缺失的資料,并相應地更新快取,
要啟用值快取功能,Zabbix服務器組態檔支持可選的ValueCacheSize引數,
調整ValueCacheSize=256M大小(根據實際情況進行調整大小),然后重啟Zabbix Server服務器,即可解決問題
systemctl restart zabbix-server
參考資料:
https://www.zabbix.com/documentation/4.0/zh/manual/appendix/config/zabbix_server
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/36502.html
標籤:其他
下一篇:Markdown學習小結
