Q1: Dashbord中提示Zabbix server is not running
A1:
- 首先查看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主机的内存适度更改