問題描述
Dashbord中提示Zabbix server is not running
分析過程
- 首先查看zabbix-server的運行狀態
systemctl status zabbix-server
確定是否是active(running)狀態,如果不是,重啟zabbix-server
- 查看log
tail -f /var/log/zabbix/zabbix_server.log
導致此問題可能有多個原因,本次以我遇到的為例,log如下
[file:dbconfig.c,line:545] zbx_mem_malloc(): out of memory (requested 16 bytes)
[file:dbconfig.c,line:545] zbx_mem_malloc(): please increase CacheSize configuration parameter
復制代碼
上面說的很明確,請調整Cachesize參數 vim /etc/zabbix/zabbix_server.conf
### Option: CacheSize
# Size of configuration cache, in bytes.
# Shared memory size for storing host, item and trigger data.
#
# Mandatory: no
# Range: 128K-8G
# Default:
CacheSize=2048M #根據zabbix server主機的內存適度更改
復制代碼