Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS 7.2 install zabbix 3.2

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

System environment: LNMP

Linux: Centos 7.2

Nginx: 1.10.3

Mysql: 5.6.35

PHP: 5.4.16

Install zabbix-server

1 Repository installation

Rpm-ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

2 Install Zabbix-server

Yum install-y zabbix-release zabbix-server-mysql zabbix-get zabbix-web zabbix-web-mysql zabbix-agent

3 Creating initial database

Shell > mysql-uroot-pmysql > create database zabbix character set utf8 collate utf8_bin;mysql > grant all privileges on zabbix.* to zabbix@localhost identified by'; mysql > quit

Zcat / usr/share/doc/zabbix-server-mysql-3.2.*/create.sql.gz | mysql- uzabbix-p zabbix

4 Database configuration for Zabbix server

# vi / etc/zabbix/zabbix_server.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=

5 Starting Zabbix server process

# systemctl start zabbix-server# systemctl enable zabbix-server

6 PHP configuration for Zabbix frontend

Vi / etc/php.inimax_execution_time 300memory_limit 128Mpost_max_size 16Mupload_max_filesize 2Mmax_input_time 300always_populate_raw_post_data-1date.timezone Asia/Shanghai

7. Copy frontend web files

Cp-R / usr/share/zabbix / usr/local/nginx/html

8. Starting Service

/ etc/init.d/php-fpmsystemctl restart nginxsystemctl start zabbix-server.service

9. Install web

Http://localhost/zabbix

problem

A non well formed numeric value encountered [zabbix.php:21 → require_once () → ZBase- > run () → ZBase- > proce***equest () → 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- > proce***equest () → 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- > proce***equest () → CView- > getOutput () → include () → make_status_of_zbx () → CFrontendSetup- > checkRequirements () → CFrontendSetup- > checkPhpUploadMaxFilesize () → str2mem () in include/func.inc.php:410]

This problem occurs when you start after the installation is complete. This is due to the type enhancement of PHP 7.1.0, and it is easy to find the include/func.inc.php file in the Zabbix WEB directory.

Problem solving

Sed-I'/ $last = strtolower (substr ($val,-1)); / a$val = substr ($val,0,-1);'/ usr/local/nginx/html/zabbix/include/func.inc.php

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report