博客
关于我
PHP 7.X 安装Zabbix 3.X问题解决
阅读量:108 次
发布时间:2019-02-25

本文共 1479 字,大约阅读时间需要 4 分钟。

安装好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]

这里写图片描述

安装完成之后启动就出现这个问题,这个是因为PHP 7.X类型强化,处理方法也很简单找到zabbix 安装目录下zabbix/include/func.inc.php文件

[root@linux-node3 include]# pwd/home/wwwroot/zabbix/include[root@linux-node3 include]# cp func.inc.php func.inc.php.bak [root@linux-node3 include]# sed -i '/$last = strtolower(substr($val, -1));/a$val = substr($val,0,-1);' func.inc.php

修改完后,刷新页面,效果如下:

这里写图片描述

备注:

如果有一下报错

zabbix server is not running:the information displayed may not be current

一般是由于php.ini文件的fsockopen模块没有启动的问题

启用fsockopen模块的方法:

php.ini文件中查找allow_url_fopen = On   #改为Onextension=php_openssl.dll    #去掉分号,如果去掉分号重启php有警告,可以编译openssl模块
你可能感兴趣的文章
Mysql 笔记
查看>>
MySQL 精选 60 道面试题(含答案)
查看>>
mysql 索引
查看>>
MySQL 索引失效的 15 种场景!
查看>>
MySQL 索引深入解析及优化策略
查看>>
MySQL 索引的面试题总结
查看>>
mysql 索引类型以及创建
查看>>
MySQL 索引连环问题,你能答对几个?
查看>>
Mysql 索引问题集锦
查看>>
Mysql 纵表转换为横表
查看>>
mysql 编译安装 window篇
查看>>
mysql 网络目录_联机目录数据库
查看>>
MySQL 聚簇索引&&二级索引&&辅助索引
查看>>
Mysql 脏页 脏读 脏数据
查看>>
mysql 自增id和UUID做主键性能分析,及最优方案
查看>>
Mysql 自定义函数
查看>>
mysql 行转列 列转行
查看>>
Mysql 表分区
查看>>
mysql 表的操作
查看>>
mysql 视图,视图更新删除
查看>>