7出现问题解决一例,3升级到最新稳定版3

ZABBIX
的事无巨细介绍
:请点这里
ZABBIX
的下载地址
:请点这里

互连网查了一晃,这是因为PHP 7.1.7门类强化,管理办法是找到Zabbix
WEB目录下include/func.inc.php文件,修改它

4)参谋2.2.3的布局文件修改zabbix
proxy的布局文件。有些参数有转移,超越30%参数没什么区别的。
5)运行zabbix
proxy服务,proxy会自动在后台进级数据库。查看proxy日志,直到晋级成功。 

安装完毕之后运转就应际而生那个难点,那个是因为PHP
7.1.0门类强化,处理方法也很简短找到Zabbix
WEB目录下include/func.inc.php文件

Anon well formed numeric value encountered [zabbix.php:21→
require_once() →ZBase->run() →ZBase->processRequest()
→CView->getOutput() → include() → make_status_of_zbx()
→CFrontendSetup->checkRequirements()
→CFrontendSetup->checkPhpMemoryLimit() →
str2mem()ininclude/func.inc.php:410]Anon well formed numeric value
encountered [zabbix.php:21→ require_once() →ZBase->run()
→ZBase->processRequest() →CView->getOutput() → include() →
make_status_of_zbx() →CFrontendSetup->checkRequirements()
→CFrontendSetup->checkPhpPostMaxSize() →
str2mem()ininclude/func.inc.php:410]Anon well formed numeric value
encountered [zabbix.php:21→ require_once() →ZBase->run()
→ZBase->processRequest() →CView->getOutput() → include() →
make_status_of_zbx() →CFrontendSetup->checkRequirements()
→CFrontendSetup->checkPhpUploadMaxFilesize() →
str2mem()ininclude/func.inc.php:410]

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

CentOS 6.3下Zabbix监察和控制MySQL数据库参数
http://www.linuxidc.com/Linux/2013-05/84800.htm

sed-i’/$last= strtolower(substr($val, -1));/a$val=
substr($val,0,-1);’func.inc.php

第一步:升级zabbix server。

64位CentOS 6.2下安装Zabbix 2.0.6 
 http://www.linuxidc.com/Linux/2014-11/109541.htm

题目还是不可能化解,后来翻开了一下func.inc.php代码,跳转到报错的职位#410,通过英特网的解决方法分析,应该是val这些变量类型难题,在403行后增添一行$val
= substr($val,0,-1); 保存修改后的公文,重新访谈zabbix web分界面就可以

若果上面供给都协助的话就足以开展晋级了,在晋级在此之前要狠抓数据的备份,方便在提高战败的时候神速回滚到2.2.3本子,备份的多寡包含zabbix数据库,zabbix
server配置文件,二进制文件和php文件,zabbix
proxy的安插文件和二进制文件。

Ubuntu
14.04下Zabbix2.4.5 源码编写翻译安装 
http://www.linuxidc.com/Linux/2015-05/117657.htm

二零一二年终很幸运步向小编现在工作的单位。那时候供销合作社用的是zennos监察和控制系统,由于当下zennos架构的统筹和自笔者效劳的界定,不能知足企务的供给。从二零一五开首承担zabbix监察和控制种类测量检验,满含zabbix作用的钻研、分布式计划和属性调优等职业。

A non well formed numeric value encountered [zabbix.php:21 →
require_once() → ZBase->run() → ZBase->processRequest() →
CView->getOutput() → include() → make_status_of_zbx() →
CFrontendSetup->checkRequirements() →
CFrontendSetup->checkPhpMemoryLimit() → str2mem() in
include/func.inc.php:410]
A non well formed numeric value encountered [zabbix.php:21 →
require_once() → ZBase->run() → ZBase->processRequest() →
CView->getOutput() → include() → make_status_of_zbx() →
CFrontendSetup->checkRequirements() →
CFrontendSetup->checkPhpPostMaxSize() → str2mem() in
include/func.inc.php:410]
A non well formed numeric value encountered [zabbix.php:21 →
require_once() → ZBase->run() → ZBase->processRequest() →
CView->getOutput() → include() → make_status_of_zbx() →
CFrontendSetup->checkRequirements() →
CFrontendSetup->checkPhpUploadMaxFilesize() → str2mem() in
include/func.inc.php:410]

局地Zabbix相关课程集结

正文永世更新链接地址:http://www.linuxidc.com/Linux/2017-02/140146.htm

总结:
7出现问题解决一例,3升级到最新稳定版3。1)官方上固然说zabbix
3.2.1的版本对php的渴求是5.4.0仍旧更新,但意识只要PHP是5.4.24版本,晤面世Last
20
issues不展现数据和前端页面有报错,但不影响效应,最后升任PHP到5.5.38版本消除了那一个难题。

在意一下文本路线就可以。

ZABBIX
的详尽介绍
:请点这里
ZABBIX
的下载地址
:请点这里

sed -i ‘/$last = strtolower(substr($val, -1));/a$val =
substr($val,0,-1);’ /home/www/zabbix/include/func.inc.php

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]

图片 1

1)停止zabbix server服务,确认保证不多insert到zabbix数据之中。

设置配备布满式监察和控制系统Zabbix 2.06
http://www.linuxidc.com/Linux/2013-07/86942.htm

zabbix成效强大,能够监察和控制包括系统、互联网、硬件和动用等,自定义的key可监察和控制到能体会理解的任何的监察和控制项目。近年来新星的一往无前版本是3.2,由于3.0今后帮忙加密通讯,趋势展望和更宏大上的前端页面,所以筹划将zabbix从2.2.3升级到3.2.1。

 

在进级从前率先检查一下zabbix
3.2.1所供给的MySQL数据库、PHP及其扩充库版本的渴求。MySQL数据库的版本必得是5.0.3照旧更新。前端页面前境遇PHP和扩张库的渴求如下:

CentOS下Zabbix 3.0.4安装安排
http://www.linuxidc.com/Linux/2017-01/139087.htm

4)安装新的zabbix3.2.1的软件包。 

Zabbix基本配备及监察和控制主机
http://www.linuxidc.com/Linux/2016-12/138504.htm

图片 2

CentOS 7.2 安装配备
Zabbix 3.0.4 详解 
http://www.linuxidc.com/Linux/2016-11/137671.htm

3)备份zabbix
server的布局文件,前端页面包车型大巴PHP文件和二进制运营文件。小编这里推荐直接采纳mv做备份。