打开zabbix的web界面看到状态错误:
<code>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]</code>
<code>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]</code>
<code>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]</code>
解决办法:
进入你的zabbixweb程序目录 修改func.inc.php 文件
<code>[root@localhost ~]</code><code># cd /usr/local/nginx/html/zabbix/include/</code>
<code>[root@localhost include]</code><code># sed -i '/$last = strtolower(substr($val, -1));/a$val = substr($val,0,-1);' func.inc.php</code>
本文转自无形于有形 51CTO博客,原文链接:http://blog.51cto.com/jinchuang/1946995,如需转载请自行联系原作者