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]
網(wǎng)上查了一下蜗顽,這是因?yàn)镻HP 7.1.7類型強(qiáng)化,處理方法是找到Zabbix WEB目錄下include/func.inc.php文件貌矿,修改它
sed-i'/$last= strtolower(substr($val, -1));/a$val= substr($val,0,-1);'func.inc.php
問(wèn)題依然未能解決复凳,后來(lái)查看了一下func.inc.php代碼佃扼,跳轉(zhuǎn)到報(bào)錯(cuò)的位置#410掠械,通過(guò)網(wǎng)上的解決方法分析血淌,應(yīng)該是val這個(gè)變量類型問(wèn)題,在403行后添加一行$val = substr($val,0,-1);?保存修改后的文件囱井,重新訪問(wèn)zabbix web界面即可