Zabbix从2.2.3升级到最新稳定版3.2.1(2)

[root@monitor ~]# /usr/local/zabbix/sbin/zabbix_server   
[root@monitor ~]# tail -f /data/logs/zabbix/zabbix_server.log
 19002:20161117:144351.201 Starting Zabbix Server. Zabbix 3.2.1 (revision 62890).
 19002:20161117:144351.201 ****** Enabled features ******
 19002:20161117:144351.201 SNMP monitoring:          YES
 19002:20161117:144351.201 IPMI monitoring:            NO
 19002:20161117:144351.201 Web monitoring:            YES
 19002:20161117:144351.201 VMware monitoring:          NO
 19002:20161117:144351.201 SMTP authentication:        NO
 19002:20161117:144351.201 Jabber notifications:      NO
 19002:20161117:144351.201 Ez Texting notifications:  YES
 19002:20161117:144351.201 ODBC:                      NO
 19002:20161117:144351.201 SSH2 support:              NO
 19002:20161117:144351.201 IPv6 support:              NO
 19002:20161117:144351.201 TLS support:                NO
 19002:20161117:144351.201 ******************************
 19002:20161117:144351.201 using configuration file: /etc/zabbix/zabbix_server.conf
 19002:20161117:144351.213 current database version (mandatory/optional): 02020000/02020001
 19002:20161117:144351.213 required mandatory version: 03020000
 19002:20161117:144351.213 starting automatic database upgrade
 19002:20161117:144351.214 completed 0% of database upgrade
 19002:20161117:144351.501 completed 1% of database upgrade
 19002:20161117:144351.940 completed 2% of database upgrade
 ......
 19002:20161117:144807.873 completed 95% of database upgrade
 19002:20161117:144808.283 completed 96% of database upgrade
 19002:20161117:144808.541 completed 97% of database upgrade
 19002:20161117:144811.410 completed 98% of database upgrade
 19002:20161117:144812.120 completed 99% of database upgrade
 19002:20161117:144812.791 completed 100% of database upgrade
 19002:20161117:144812.791 database upgrade fully completed

第四步:安装zabbix 前端WEB服务,一切都很顺利。

Zabbix从2.2.3升级到最新稳定版3.2.1

总结:
1)官方上虽然说zabbix 3.2.1的版本对php的要求是5.4.0或者更新,但发现如果PHP是5.4.24版本,会出现Last 20 issues不显示数据和前端页面有报错,但不影响功能,最后升级PHP到5.5.38版本解决了这个问题。

array_map() expects parameter 1 to be a valid callback, no array or string given [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → make_system_status() → makeTriggersPopup() → CMacrosResolverHelper::resolveEventDescription() → CMacrosResolver->resolveTriggerNames() → CMacrosResolverGeneral->findFunctions() → CMacroParser->__construct() → array_map() in include/classes/parsers/CMacroParser.php:60]
Argument 1 passed to CSetParser::__construct() must be of the type array, null given, called in /data/online/zabbix/include/classes/parsers/CMacroParser.php on line 60 and defined [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → make_system_status() → makeTriggersPopup() → CMacrosResolverHelper::resolveEventDescription() → CMacrosResolver->resolveTriggerNames() → CMacrosResolverGeneral->findFunctions() → CMacroParser->__construct() → CSetParser->__construct() in include/classes/parsers/CSetParser.php:43]
array_flip() expects parameter 1 to be array, null given [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → make_system_status() → makeTriggersPopup() → CMacrosResolverHelper::resolveEventDescription() → CMacrosResolver->resolveTriggerNames() → CMacrosResolverGeneral->findFunctions() → CMacroParser->__construct() → CSetParser->__construct() → array_flip() in include/classes/parsers/CSetParser.php:44]
implode(): Argument must be an array [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → make_system_status() → makeTriggersPopup() → CMacrosResolverHelper::resolveEventDescription() → CMacrosResolver->resolveTriggerNames() → CMacrosResolverGeneral->findFunctions() → CMacroParser->__construct() → CSetParser->__construct() → implode() in include/classes/parsers/CSetParser.php:45]

2)检查php session是否有写的权限,如果没有写的权限,前端页面也会出错。

一些Zabbix相关教程集合

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/823ef0efcec16f810356a4eaf9f24e90.html