天天看点

zabbix 2.4.5升级到3.2.6总结

1、如果php版本小于5.6,需要升级到5.6以上。

2、保存数据库不变,当zabbix server或zabbix proxy升级后启动时会自动更新数据库。

3、整个架构的zabbix server 和 zabbix proxy都要同时升级。

4、如果升级后新增到proxy的机器无法识别,先重启proxy,还不行则修改proxy配置文件参数ConfigFrequency=120。

5、升级前对zabbix server和zabbix proxy备份,和数据库备份。

zabbix server配置文件:

LogFile=/tmp/zabbix_server.log

DBHost=10.10.45.154

DBName=zabbix

DBUser=zabbix

DBPassword=******

StartPollers=50

StartHTTPPollers=50

CacheSize=2048M

HistoryCacheSize=512M

TrendCacheSize=512M

ValueCacheSize=2048M

Timeout=4

AlertScriptsPath=/usr/local/zabbix/alertscripts

LogSlowQueries=3000

StartProxyPollers=5

zabbix proxy 配置文件:

ProxyMode=0

Server=10.10.45.151

Hostname=zabbix-p01

LogFile=/tmp/zabbix_proxy.log

DBHost=10.10.45.155

DBPassword=zabbix_123

ConfigFrequency=120

StartPollers=200

StartDiscoverers=50

StartHTTPPollers=200

JavaGateway=10.10.45.152

JavaGatewayPort=10052

StartJavaPollers=50

StartDBSyncers=10

HistoryIndexCacheSize=512M

继续阅读