首頁 > 軟體

PHP 7.1.0安裝Zabbix 3.0.7出現問題解決一例

2020-06-16 17:22:19

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.1.0型別強化,處理方法也很簡單找到Zabbix WEB目錄下include/func.inc.php檔案

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

注意一下檔案路徑即可。

 

一些Zabbix相關教學集合

CentOS 7.2 安裝部署 Zabbix 3.0.4 詳解  http://www.linuxidc.com/Linux/2016-11/137671.htm

Ubuntu 14.04下Zabbix2.4.5 原始碼編譯安裝  http://www.linuxidc.com/Linux/2015-05/117657.htm

安裝部署分散式監控系統Zabbix 2.06 http://www.linuxidc.com/Linux/2013-07/86942.htm

Zabbix基本設定及監控主機 http://www.linuxidc.com/Linux/2016-12/138504.htm

CentOS 7.0 x64下Zabbix 3.0 安裝筆記  http://www.linuxidc.com/Linux/2016-11/137044.htm

CentOS下Zabbix 3.0.4安裝部署 http://www.linuxidc.com/Linux/2017-01/139087.htm

CentOS 6.3下Zabbix監控MySQL資料庫引數 http://www.linuxidc.com/Linux/2013-05/84800.htm

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


IT145.com E-mail:sddin#qq.com