In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1 Create user account
Shell > groupadd zabbix
Shell > useradd-g zabbix zabbix
2 Create Zabbix database
Database creation scripts
Scripts
MySQL
Shell > mysql-uroot-p
Mysql > create database zabbix character set utf8 collate utf8_bin
Mysql > grant all privileges on zabbix.* to zabbix@localhost identified by''
Mysql > flush privileges
Mysql > quit
Installation from sources
3 Installing Zabbix daemons
Shell > tar-zxvf zabbix-3.0.0.tar.gz
Shell > cd database/mysql
Shell > mysql-uzabbix-p zabbix
< schema.sql # stop here if you are creating database for Zabbix proxy shell>Mysql-uzabbix-p zabbix
< p_w_picpaths.sql shell>Mysql-uzabbix-p zabbix
< data.sql databases 'zabbix' pssword 'password' 4 Configure the sources To configure the sources for a Zabbix server and agent, you may run something like: shell>. / configure\
-- prefix=/usr/local/zabbix\
-- enable-server\
-- enable-agent\
-- with-mysql=/usr/local/mysql/bin/mysql_config\
-- enable-ipv6\
-- with-net-snmp\
-- with-libcurl\
-- with-libxml2
5 Make and install everything
Shell > make install
6 Review and edit configuration files
Edit the Zabbix agent configuration file / usr/local/etc/zabbix_agentd.conf
Shell > vim / usr/local/zabbix/etc/zabbix_agentd.conf# specify server address
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=Zabbix server#Hostname is unique and cannot be repeated.
Edit the Zabbix server configuration file / usr/local/etc/zabbix_server.conf
Shell > vim / usr/local/zabbix/etc/zabbix_server.conf# specify database username and password
ListenPort=10051
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
DBPort=3306
7 Start up the daemons
Run zabbix_server on the server side.
Shell > / usr/local/zabbix/sbin/zabbix_server
Zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
Shell > ln-s / usr/local/mysql/lib/libmysqlclient.so.20 / usr/lib64/
Run zabbix_agentd on all the monitored machines.
Shell > / usr/local/zabbix/sbin/zabbix_agentd
8 Installing Zabbix web interface
Shell > mkdir / zabbix
Shell > cd ~ / zabbix-3.x.x/frontends/php
Shell > cp-a. / zabbix
9 Installing frontend
In your browser, open Zabbix URL: http:///zabbix
You should see the first screen of the frontend installation wizard.
Enter user name: Admin password: zabbix can be accessed normally
Editing PHP configuration for Zabbix frontend
The php.ini path can access the php test page to get test.php
In php.ini:
Date.timezone = Asia/Shanghai
Memory_limit = 128m
Post_max_size = 16m
Upload_max_filesize = 2m
Max_execution_time = 300
Max_input_time = 300
Session.auto_start = 0.
Mbstring.func_overload = 0.
Home page error after installing Zabbix3.X
123A 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 is because the PHP7.1X type is enhanced, and the solution is as follows
Sed-I'/ $last = strtolower (substr ($val,-1)); / a$val = substr ($val,0,-1);'/ zabbix/include/func.inc.php
Just pay attention to the Zabbix Web path
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.